public interface LSrtPair extends LTuple<Object>, LSrtSingle
Exact equivalent of input parameters used in LBiSrtConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LSrtPair.AbstractSrtPair |
static interface |
LSrtPair.ComparableSrtPair |
static class |
LSrtPair.ImmCompSrtPair
Immutable, comparable tuple.
|
static class |
LSrtPair.ImmSrtPair
Immutable, non-comparable tuple.
|
static class |
LSrtPair.MutCompSrtPair
Mutable, comparable tuple.
|
static class |
LSrtPair.MutSrtPair
Mutable, non-comparable tuple.
|
LSrtSingle.AbstractSrtSingle, LSrtSingle.ComparableSrtSingle, LSrtSingle.ImmCompSrtSingle, LSrtSingle.ImmSrtSingle, LSrtSingle.MutCompSrtSingle, LSrtSingle.MutSrtSingleLTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(LSrtPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static boolean |
argEquals(short a1,
short a2,
short b1,
short b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LSrtPair and checks if all values are equal.
|
static int |
argHashCode(short a1,
short a2)
Static hashCode() implementation method that takes same arguments as fields of the LSrtPair and calculates hash from it.
|
short |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
short |
second() |
default int |
size()
Tuple size
|
default short |
value() |
argEquals, argEquals, argHashCodestatic final int SIZE
short first()
first in interface LSrtSingledefault short value()
value in interface LSrtSingleshort second()
default Object get(int index)
get in interface LSrtSingledefault int size()
Tuple size
size in interface LSrtSinglesize in interface LTuple<Object>static int argHashCode(short a1,
short a2)
Static hashCode() implementation method that takes same arguments as fields of the LSrtPair and calculates hash from it.
static boolean argEquals(short a1,
short a2,
short b1,
short b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LSrtPair and checks if all values are equal.
static boolean argEquals(LSrtPair 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 LSrtSingleCopyright © 2019. All rights reserved.