DateTimeEntity.DateTimeGranularity

  • DateTimeEntity.DateTimeGranularity is an annotation that indicates the precision of a timestamp extracted from text.

  • The granularity can vary, for example, "tomorrow" would have day granularity, while "12:51" would have minute granularity.

  • This annotation inherits methods from the java.lang.annotation.Annotation interface, including annotationType(), equals(), hashCode(), and toString().

public static abstract @interface DateTimeEntity.DateTimeGranularity implements Annotation

The precision of a timestamp that was extracted from text.

For example, "tomorrow" has the granularity DateTimeEntity.GRANULARITY_DAY, while "12:51" will have the granularity DateTimeEntity.GRANULARITY_MINUTE.

Inherited Method Summary