Record Class EnvironmentAttributeMap.Pending<V>
java.lang.Object
java.lang.Record
dev.wyck.wrapper.environment.attribute.EnvironmentAttributeMap.Pending<V>
- Type Parameters:
V- the type of the attribute
- Enclosing class:
EnvironmentAttributeMap
@Internal
public static record EnvironmentAttributeMap.Pending<V>(EnvironmentAttributeSupplier<V> supplier, V value)
extends Record
A deferred attribute entry, holding a supplier and its exposed value.
- Since:
- 2.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionPending(EnvironmentAttributeSupplier<V> supplier, V value) Creates an instance of aPendingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.supplier()Returns the value of thesupplierrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Pending
Creates an instance of aPendingrecord class.- Parameters:
supplier- the value for thesupplierrecord componentvalue- the value for thevaluerecord component
-
-
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). -
supplier
Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-