Package com.io7m.cardant.strings
Record Class CAStringConstantApplied
java.lang.Object
java.lang.Record
com.io7m.cardant.strings.CAStringConstantApplied
- Record Components:
constant- The constantargs- The arguments
- All Implemented Interfaces:
CAStringConstantType,com.io7m.jxtrand.api.JXTStringConstantType
public record CAStringConstantApplied(CAStringConstantType constant, Object[] args)
extends Record
implements CAStringConstantType
A string constant with format arguments included.
-
Constructor Summary
ConstructorsConstructorDescriptionCAStringConstantApplied(CAStringConstantType constant, Object... args) A string constant with format arguments included. -
Method Summary
Modifier and TypeMethodDescriptionObject[]args()Returns the value of theargsrecord component.constant()Returns the value of theconstantrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAStringConstantApplied
A string constant with format arguments included.- Parameters:
constant- The constantargs- The arguments
-
-
Method Details
-
propertyName
- Specified by:
propertyNamein interfacecom.io7m.jxtrand.api.JXTStringConstantType
-
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). -
constant
Returns the value of theconstantrecord component.- Returns:
- the value of the
constantrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-