Class Date
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.AbstractCustomJavaDataType<TYPE,ZonedDateTime>
-
- gov.nist.secauto.metaschema.core.datatype.object.AbstractAmbiguousTemporal<Date>
-
- gov.nist.secauto.metaschema.core.datatype.object.Date
-
- All Implemented Interfaces:
ICustomJavaDataType<Date>
public class Date extends AbstractAmbiguousTemporal<Date>
-
-
Constructor Summary
Constructors Constructor Description Date(ZonedDateTime value, boolean hasTimeZone)
Construct a new date object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
copy()
Provides a copy of the data value associated with the Datatype instance.-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.object.AbstractAmbiguousTemporal
hasTimeZone
-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractCustomJavaDataType
equals, getValue, hashCode, toString
-
-
-
-
Constructor Detail
-
Date
public Date(@NonNull ZonedDateTime value, boolean hasTimeZone)
Construct a new date object. This type supports ambiguous dates that were provided without a time zone.- Parameters:
value
- the date valuehasTimeZone
-true
if the date is intended to have an associated time zone orfalse
otherwise
-
-
Method Detail
-
copy
public Date copy()
Description copied from interface:ICustomJavaDataType
Provides a copy of the data value associated with the Datatype instance.- Returns:
- the copy
-
-