Package ch.tocco.nice2.widget.impl.terms
Record Class TermsConditionResource.TermsData
java.lang.Object
java.lang.Record
ch.tocco.nice2.widget.impl.terms.TermsConditionResource.TermsData
- Enclosing class:
TermsConditionResource
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkbox()
Returns the value of thecheckbox
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.label()
Returns the value of thelabel
record component.@Nullable String
link()
Returns the value of thelink
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NONE
-
-
Constructor Details
-
TermsData
Creates an instance of aTermsData
record class.- Parameters:
key
- the value for thekey
record componentlabel
- the value for thelabel
record componentcheckbox
- the value for thecheckbox
record componentlink
- the value for thelink
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
checkbox
public boolean checkbox()Returns the value of thecheckbox
record component.- Returns:
- the value of the
checkbox
record component
-
link
Returns the value of thelink
record component.- Returns:
- the value of the
link
record component
-