public final class DateTimeGroup extends Object implements com.gembox.internal.core.Equatable<DateTimeGroup>
Represents a group of LocalDateTime
s.
Each LocalDateTime
instance that has the same date/time components (year, month, day, hour, minute, second) as this getDateTime()
up to getLevel()
belongs to this group.
Instance of DateTimeGroup
can be inserted into ValuesFilter's values
collection to enable filtering LocalDateTime
values.
Constructor and Description |
---|
DateTimeGroup(int year)
Initializes a new instance of the
DateTimeGroup type with DateTimeGroupLevel.YEAR level. |
DateTimeGroup(int year,
int month)
Initializes a new instance of the
DateTimeGroup type with DateTimeGroupLevel.MONTH level. |
DateTimeGroup(int year,
int month,
int day)
Initializes a new instance of the
DateTimeGroup type with DateTimeGroupLevel.DAY level. |
DateTimeGroup(int year,
int month,
int day,
int hour)
Initializes a new instance of the
DateTimeGroup type with DateTimeGroupLevel.HOUR level. |
DateTimeGroup(int year,
int month,
int day,
int hour,
int minute)
Initializes a new instance of the
DateTimeGroup type with DateTimeGroupLevel.MINUTE level. |
DateTimeGroup(int year,
int month,
int day,
int hour,
int minute,
int second)
Initializes a new instance of the
DateTimeGroup type with DateTimeGroupLevel.SECOND level. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this DateTimeGroup instance. |
LocalDateTime |
getDateTime()
Gets the date/time of this
DateTimeGroup . |
DateTimeGroupLevel |
getLevel()
Gets the grouping level of this
DateTimeGroup . |
int |
hashCode()
Returns a hash code for this
DateTimeGroup instance. |
String |
toString()
Returns a
String that represents this DateTimeGroup instance. |
public DateTimeGroup(int year)
DateTimeGroup
type with DateTimeGroupLevel.YEAR
level.year
- The year.public DateTimeGroup(int year, int month)
DateTimeGroup
type with DateTimeGroupLevel.MONTH
level.year
- The year.month
- The month.public DateTimeGroup(int year, int month, int day)
DateTimeGroup
type with DateTimeGroupLevel.DAY
level.year
- The year.month
- The month.day
- The day.public DateTimeGroup(int year, int month, int day, int hour)
DateTimeGroup
type with DateTimeGroupLevel.HOUR
level.year
- The year.month
- The month.day
- The day.hour
- The hour.public DateTimeGroup(int year, int month, int day, int hour, int minute)
DateTimeGroup
type with DateTimeGroupLevel.MINUTE
level.year
- The year.month
- The month.day
- The day.hour
- The hour.minute
- The minute.public DateTimeGroup(int year, int month, int day, int hour, int minute, int second)
DateTimeGroup
type with DateTimeGroupLevel.SECOND
level.year
- The year.month
- The month.day
- The day.hour
- The hour.minute
- The minute.second
- The second.public boolean equals(Object obj)
Object
is equal to this DateTimeGroup
instance.equals
in class Object
obj
- The Object
to compare with this DateTimeGroup
instance.true
if the specified Object
is a DateTimeGroup
and is equal to this DateTimeGroup
instance; otherwise, false
.public LocalDateTime getDateTime()
Gets the date/time of this DateTimeGroup
.
Valid date/time components are only those upon to level
.
DateTimeGroup
.public DateTimeGroupLevel getLevel()
DateTimeGroup
.DateTimeGroup
.public int hashCode()
DateTimeGroup
instance.hashCode
in class Object
DateTimeGroup
instance.public String toString()
String
that represents this DateTimeGroup
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class Object
String
that represents this DateTimeGroup
instance.© GemBox d.o.o. — All rights reserved.