Record Class MessageService.Replaceable<T>
java.lang.Object
java.lang.Record
com.zetaplugins.zetacore.services.MessageService.Replaceable<T>
- Type Parameters:
T- The type of the value- Record Components:
placeholder- The placeholder string to be replacedvalue- The value to replace the placeholder with
- Enclosing class:
MessageService
Deprecated.
A record representing a placeholder and its value for replacement in messages
-
Constructor Summary
ConstructorsConstructorDescriptionReplaceable(String placeholder, T value) Deprecated.Creates an instance of aReplaceablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.Deprecated.Returns the value of theplaceholderrecord component.final StringtoString()Deprecated.Returns a string representation of this record class.value()Deprecated.Returns the value of thevaluerecord component.
-
Constructor Details
-
Replaceable
Deprecated.Creates an instance of aReplaceablerecord class.- Parameters:
placeholder- the value for theplaceholderrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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). -
placeholder
Deprecated.Returns the value of theplaceholderrecord component.- Returns:
- the value of the
placeholderrecord component
-
value
Deprecated.Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
Replaceableinstead.