Package com.mojang.datafixers
Record Class RewriteResult<A,B>
java.lang.Object
java.lang.Record
com.mojang.datafixers.RewriteResult<A,B>
-
Constructor Summary
ConstructorDescriptionRewriteResult
(View<A, B> view, BitSet recData) Creates an instance of aRewriteResult
record class. -
Method Summary
Modifier and TypeMethodDescription<C> RewriteResult<C,
B> compose
(RewriteResult<C, A> that) static <A,
B> RewriteResult<A, B> boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.static <A> RewriteResult<A,
A> recData()
Returns the value of therecData
record component.toString()
Returns a string representation of this record class.view()
Returns the value of theview
record component.
-
Constructor Details
-
RewriteResult
Creates an instance of aRewriteResult
record class.- Parameters:
view
- the value for theview
record componentrecData
- the value for therecData
record component
-
-
Method Details
-
create
-
nop
-
compose
-
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. -
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)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
view
Returns the value of theview
record component.- Returns:
- the value of the
view
record component
-
recData
Returns the value of therecData
record component.- Returns:
- the value of the
recData
record component
-