public interface LCharPair extends LTuple<Object>, LCharSingle
Exact equivalent of input parameters used in LBiCharConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LCharPair.AbstractCharPair |
static interface |
LCharPair.ComparableCharPair |
static class |
LCharPair.ImmCharPair
Immutable, non-comparable tuple.
|
static class |
LCharPair.ImmCompCharPair
Immutable, comparable tuple.
|
static class |
LCharPair.MutCharPair
Mutable, non-comparable tuple.
|
static class |
LCharPair.MutCompCharPair
Mutable, comparable tuple.
|
LCharSingle.AbstractCharSingle, LCharSingle.ComparableCharSingle, LCharSingle.ImmCharSingle, LCharSingle.ImmCompCharSingle, LCharSingle.MutCharSingle, LCharSingle.MutCompCharSingleLTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(char a1,
char a2,
char b1,
char b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LCharPair and checks if all values are equal.
|
static boolean |
argEquals(LCharPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static int |
argHashCode(char a1,
char a2)
Static hashCode() implementation method that takes same arguments as fields of the LCharPair and calculates hash from it.
|
char |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
char |
second() |
default int |
size()
Tuple size
|
default char |
value() |
argEquals, argEquals, argHashCodestatic final int SIZE
char first()
first in interface LCharSingledefault char value()
value in interface LCharSinglechar second()
default Object get(int index)
get in interface LCharSingledefault int size()
Tuple size
size in interface LCharSinglesize in interface LTuple<Object>static int argHashCode(char a1,
char a2)
Static hashCode() implementation method that takes same arguments as fields of the LCharPair and calculates hash from it.
static boolean argEquals(char a1,
char a2,
char b1,
char b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LCharPair and checks if all values are equal.
static boolean argEquals(LCharPair 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 LCharSingleCopyright © 2019. All rights reserved.