Package io.vertigo.datamodel.smarttype
Record Class FormatterConfig
java.lang.Object
java.lang.Record
io.vertigo.datamodel.smarttype.FormatterConfig
-
Constructor Summary
ConstructorsConstructorDescriptionFormatterConfig(Class<? extends Formatter> formatterClass, String arg) Creates an instance of aFormatterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarg()Returns the value of theargrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatterClassrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormatterConfig
Creates an instance of aFormatterConfigrecord class.- Parameters:
formatterClass- the value for theformatterClassrecord componentarg- the value for theargrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
formatterClass
Returns the value of theformatterClassrecord component.- Returns:
- the value of the
formatterClassrecord component
-
arg
Returns the value of theargrecord component.- Returns:
- the value of the
argrecord component
-