Package net.minecraft.util.thread
Record Class ParallelMapTransform.Container<K,U,V>
java.lang.Object
java.lang.Record
net.minecraft.util.thread.ParallelMapTransform.Container<K,U,V>
- Enclosing class:
ParallelMapTransform
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyOperation(int pIndex) voidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private Uinput(int pIndex) private Kkey(int pIndex) Object[]keys()Returns the value of thekeysrecord component.BiFunction<K, U, V> Returns the value of theoperationrecord component.private Voutput(int pIndex) voidintsize()final StringtoString()Returns a string representation of this record class.Object[]values()Returns the value of thevaluesrecord component.
-
Field Details
-
operation
The field for theoperationrecord component. -
keys
The field for thekeysrecord component. -
values
The field for thevaluesrecord component.
-
-
Constructor Details
-
Container
-
Container
Creates an instance of aContainerrecord class.- Parameters:
operation- the value for theoperationrecord componentkeys- the value for thekeysrecord componentvalues- the value for thevaluesrecord component
-
-
Method Details
-
put
-
key
-
output
-
input
-
applyOperation
public void applyOperation(int pIndex) -
copyOut
-
size
public int size() -
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). -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-