Record Class CorrespondenceSettings.SignatureBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.action.CorrespondenceSettings.SignatureBean
- Enclosing class:
CorrespondenceSettings
-
Constructor Summary
ConstructorsConstructorDescriptionSignatureBean
(@Nullable String name, @Nullable String function, boolean hideImage, @Nullable String signatureKey) Creates an instance of aSignatureBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@Nullable String
function()
Returns the value of thefunction
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehideImage
record component.@Nullable String
name()
Returns the value of thename
record component.@Nullable String
Returns the value of thesignatureKey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SignatureBean
public SignatureBean(@Nullable @Nullable String name, @Nullable @Nullable String function, boolean hideImage, @Nullable @Nullable String signatureKey) Creates an instance of aSignatureBean
record class.- Parameters:
name
- the value for thename
record componentfunction
- the value for thefunction
record componenthideImage
- the value for thehideImage
record componentsignatureKey
- the value for thesignatureKey
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
record component
-
hideImage
public boolean hideImage()Returns the value of thehideImage
record component.- Returns:
- the value of the
hideImage
record component
-
signatureKey
Returns the value of thesignatureKey
record component.- Returns:
- the value of the
signatureKey
record component
-