- Type Parameters:
A - The first obj.
B - The second obj.
public class Tuple<A,B>
extends Object
Our own tuple implementation with hashcode and equals.
-
Constructor Summary
Constructors
Tuple(com.mojang.datafixers.util.Pair<A,B> codecPair)
-
Method Summary
boolean
int
com.mojang.datafixers.util.Pair<A,B>
-
Constructor Details
-
Tuple
public Tuple(@Nullable
A aIn,
@Nullable
B bIn)
-
Tuple
public Tuple(com.mojang.datafixers.util.Pair<A,B> codecPair)
-
Method Details
-
getA
@Nullable
public A getA()
-
getB
@Nullable
public B getB()
-
-
-
toCodecPair
public com.mojang.datafixers.util.Pair<A,B> toCodecPair()