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 TypeMethodDescriptionvoid
applyOperation
(int p_404789_) void
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.private U
input
(int p_405264_) private K
key
(int p_404792_) Object[]
keys()
Returns the value of thekeys
record component.BiFunction
<K, U, V> Returns the value of theoperation
record component.private V
output
(int p_405132_) void
int
size()
final String
toString()
Returns a string representation of this record class.Object[]
values()
Returns the value of thevalues
record component.
-
Field Details
-
operation
The field for theoperation
record component. -
keys
The field for thekeys
record component. -
values
The field for thevalues
record component.
-
-
Constructor Details
-
Container
-
Container
Creates an instance of aContainer
record class.- Parameters:
operation
- the value for theoperation
record componentkeys
- the value for thekeys
record componentvalues
- the value for thevalues
record component
-
-
Method Details
-
put
-
key
-
output
-
input
-
applyOperation
public void applyOperation(int p_404789_) -
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 theoperation
record component.- Returns:
- the value of the
operation
record component
-
keys
Returns the value of thekeys
record component.- Returns:
- the value of the
keys
record component
-
values
Returns the value of thevalues
record component.- Returns:
- the value of the
values
record component
-