Package com.mojang.datafixers
Record Class View<A,B>
java.lang.Object
java.lang.Record
com.mojang.datafixers.View<A,B>
- All Implemented Interfaces:
App2<com.mojang.datafixers.View.Mu,
A, B>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A,
B> View<A, B> static <A,
B> View<A, B> final boolean
Indicates whether some other object is "equal to" this one.function()
Returns the value of thefunction
record component.funcType()
final int
hashCode()
Returns a hash code value for this object.boolean
isNop()
newType()
static <A> View<A,
A> rewrite
(PointFreeRule rule) rewriteOrNop
(PointFreeRule rule) toString()
Returns a string representation of this record class.type()
-
Constructor Details
-
View
Creates an instance of aView
record class.- Parameters:
function
- the value for thefunction
record component
-
-
Method Details
-
nopView
-
type
-
newType
-
funcType
-
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. -
rewrite
-
rewriteOrNop
-
flatMap
-
create
-
create
-
compose
-
isNop
public boolean isNop() -
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)
. -
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
record component
-