Record Class EnvironmentAttributeMap.Modification<V,A>
java.lang.Object
java.lang.Record
dev.wyck.environment.attribute.EnvironmentAttributeMap.Modification<V,A>
- Type Parameters:
V- the value type of the attributeA- the argument type of the operation- Record Components:
attribute- the attribute being modifiedoperation- the operation applied to the attributeargument- the argument supplied to the operation
- All Implemented Interfaces:
AttributeModification<V>
- Enclosing class:
EnvironmentAttributeMap
@AsOf("3.3.0")
public static record EnvironmentAttributeMap.Modification<V,A> (EnvironmentAttribute<V> attribute, AttributeOperation operation, A argument)
extends Record
implements AttributeModification<V>
A fixed operation and argument applied to an environment attribute.
- Since:
- 3.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionModification(EnvironmentAttribute<V> attribute, AttributeOperation operation, A argument) Creates an instance of aModificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument()Returns the value of theargumentrecord component.Returns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
attribute
Returns the value of theattributerecord component.- Specified by:
attributein interfaceAttributeModification<V>- Returns:
- the value of the
attributerecord component
-
operation
Returns the value of theoperationrecord component.- Specified by:
operationin interfaceAttributeModification<V>- Returns:
- the value of the
operationrecord component
-
argument
-