public interface LLongPair extends LTuple<Object>, LLongSingle
Exact equivalent of input parameters used in LBiLongConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LLongPair.AbstractLongPair |
static interface |
LLongPair.ComparableLongPair |
static class |
LLongPair.ImmCompLongPair
Immutable, comparable tuple.
|
static class |
LLongPair.ImmLongPair
Immutable, non-comparable tuple.
|
static class |
LLongPair.MutCompLongPair
Mutable, comparable tuple.
|
static class |
LLongPair.MutLongPair
Mutable, non-comparable tuple.
|
LLongSingle.AbstractLongSingle, LLongSingle.ComparableLongSingle, LLongSingle.ImmCompLongSingle, LLongSingle.ImmLongSingle, LLongSingle.MutCompLongSingle, LLongSingle.MutLongSingleLTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(LLongPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static boolean |
argEquals(long a1,
long a2,
long b1,
long b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LLongPair and checks if all values are equal.
|
static int |
argHashCode(long a1,
long a2)
Static hashCode() implementation method that takes same arguments as fields of the LLongPair and calculates hash from it.
|
long |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
long |
second() |
default int |
size()
Tuple size
|
default long |
value() |
argEquals, argEquals, argHashCodestatic final int SIZE
long first()
first in interface LLongSingledefault long value()
value in interface LLongSinglelong second()
default Object get(int index)
get in interface LLongSingledefault int size()
Tuple size
size in interface LLongSinglesize in interface LTuple<Object>static int argHashCode(long a1,
long a2)
Static hashCode() implementation method that takes same arguments as fields of the LLongPair and calculates hash from it.
static boolean argEquals(long a1,
long a2,
long b1,
long b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LLongPair and checks if all values are equal.
static boolean argEquals(LLongPair 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 LLongSingleCopyright © 2019. All rights reserved.