public interface LSrtIntPair extends LTuple<Object>, LSrtSingle
Exact equivalent of input parameters used in LSrtIntConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LSrtIntPair.AbstractSrtIntPair |
static interface |
LSrtIntPair.ComparableSrtIntPair |
static class |
LSrtIntPair.ImmCompSrtIntPair
Immutable, comparable tuple.
|
static class |
LSrtIntPair.ImmSrtIntPair
Immutable, non-comparable tuple.
|
static class |
LSrtIntPair.MutCompSrtIntPair
Mutable, comparable tuple.
|
static class |
LSrtIntPair.MutSrtIntPair
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(LSrtIntPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static boolean |
argEquals(short a1,
int a2,
short b1,
int b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LSrtIntPair and checks if all values are equal.
|
static int |
argHashCode(short a1,
int a2)
Static hashCode() implementation method that takes same arguments as fields of the LSrtIntPair and calculates hash from it.
|
short |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
int |
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 LSrtSingleint 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,
int a2)
Static hashCode() implementation method that takes same arguments as fields of the LSrtIntPair and calculates hash from it.
static boolean argEquals(short a1,
int a2,
short b1,
int b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LSrtIntPair and checks if all values are equal.
static boolean argEquals(LSrtIntPair 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.