Package ai.tock.nlp.entity.date
Enum DateEntityGrain
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum DateEntityGrain extends Enum<DateEntityGrain>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDateEntityGrain.Companion
-
Method Summary
Modifier and Type Method Description final ZonedDateTimetruncate(ZonedDateTime date)final ZonedDateTimecalculateInclusiveEnd(ZonedDateTime start, ZoneId zoneId)final ZonedDateTimecalculateEnd(ZonedDateTime start, ZoneId zoneId)final DateEntityGrainvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<DateEntityGrain>values()Returns an array containing the constants of this enum type, in the order they're declared. final BooleangetTime()-
-
Method Detail
-
truncate
final ZonedDateTime truncate(ZonedDateTime date)
-
calculateInclusiveEnd
final ZonedDateTime calculateInclusiveEnd(ZonedDateTime start, ZoneId zoneId)
-
calculateEnd
final ZonedDateTime calculateEnd(ZonedDateTime start, ZoneId zoneId)
-
valueOf
final DateEntityGrain valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<DateEntityGrain> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-
-
-