public interface LIntPair extends LTuple<Object>, LIntSingle
Exact equivalent of input parameters used in LBiIntConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LIntPair.AbstractIntPair |
static interface |
LIntPair.ComparableIntPair |
static class |
LIntPair.ImmCompIntPair
Immutable, comparable tuple.
|
static class |
LIntPair.ImmIntPair
Immutable, non-comparable tuple.
|
static class |
LIntPair.MutCompIntPair
Mutable, comparable tuple.
|
static class |
LIntPair.MutIntPair
Mutable, non-comparable tuple.
|
LIntSingle.AbstractIntSingle, LIntSingle.ComparableIntSingle, LIntSingle.ImmCompIntSingle, LIntSingle.ImmIntSingle, LIntSingle.MutCompIntSingle, LIntSingle.MutIntSingleLTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(int a1,
int a2,
int b1,
int b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LIntPair and checks if all values are equal.
|
static boolean |
argEquals(LIntPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static int |
argHashCode(int a1,
int a2)
Static hashCode() implementation method that takes same arguments as fields of the LIntPair and calculates hash from it.
|
int |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
int |
second() |
default int |
size()
Tuple size
|
default int |
value() |
argEquals, argEquals, argHashCodestatic final int SIZE
int first()
first in interface LIntSingledefault int value()
value in interface LIntSingleint second()
default Object get(int index)
get in interface LIntSingledefault int size()
Tuple size
size in interface LIntSinglesize in interface LTuple<Object>static int argHashCode(int a1,
int a2)
Static hashCode() implementation method that takes same arguments as fields of the LIntPair and calculates hash from it.
static boolean argEquals(int a1,
int a2,
int b1,
int b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LIntPair and checks if all values are equal.
static boolean argEquals(LIntPair the, Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
Tuples are considered equal if are implementing same interface and their tuple values are equal regardless of the implementing class.
default Iterator<Object> iterator()
iterator in interface LIntSingleCopyright © 2019. All rights reserved.