Package one.util.streamex
Class Internals.PairBox<A,B>
- java.lang.Object
-
- one.util.streamex.Internals.Box<A>
-
- one.util.streamex.Internals.PairBox<A,B>
-
- Type Parameters:
A
- type of the first elementB
- type of the second element
- All Implemented Interfaces:
java.util.function.Consumer<A>
- Enclosing interface:
- Internals
public static final class Internals.PairBox<A,B> extends Internals.Box<A>
A box of two elements with special equality semantics: only the second element matters for equality.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) B
b
-
Fields inherited from class one.util.streamex.Internals.Box
a
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
(package private) static <T> Internals.PairBox<T,T>
single(T a)
-
Methods inherited from class one.util.streamex.Internals.Box
accept, asOptional, partialCollector
-
-
-
-
Field Detail
-
b
B b
-
-
Method Detail
-
single
static <T> Internals.PairBox<T,T> single(T a)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-