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 index) voidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private @Nullable Uinput(int index) private @Nullable Kkey(int index) @Nullable Object[]keys()Returns the value of thekeysrecord component.BiFunction<K, U, V> Returns the value of theoperationrecord component.private @Nullable Voutput(int index) voidintsize()final StringtoString()Returns a string representation of this record class.@Nullable 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 index) -
copyOut
-
size
public int size() -
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). -
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
-