Record Class Descriptor
java.lang.Object
java.lang.Record
atlantafx.validation.Descriptor
- Record Components:
name- the name of the rule or rule set this descriptor belongs toattributes- custom key-value attributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DescriptorA descriptor with an empty name and no attributes. -
Constructor Summary
ConstructorsConstructorDescriptionDescriptor(String name, Map<String, @Nullable Object> attributes) Creates an instance of aDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final 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.static DescriptorCreates a descriptor with the given name and an immutable copy of the given attributes.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
A descriptor with an empty name and no attributes.
-
-
Constructor Details
-
Descriptor
-
-
Method Details
-
of
Creates a descriptor with the given name and an immutable copy of the given attributes. -
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
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-