Record Class Arg.Moment
java.lang.Object
java.lang.Record
com.ultikits.ultitools.text.Arg.Moment
- All Implemented Interfaces:
Arg
- Enclosing interface:
Arg
A date/time argument. @param name tag name @param value temporal value to format
-
Nested Class Summary
Nested classes/interfaces inherited from interface Arg
Arg.Localized, Arg.Moment, Arg.Numeric, Arg.Unparsed -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamerecord component.private final TemporalAccessorThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMoment(String name, TemporalAccessor value) Validates the name and rejects a null value. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
name
The field for thenamerecord component. -
value
The field for thevaluerecord component.
-
-
Constructor Details
-
Moment
Validates the name and rejects a null value.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-