public interface LBoolPair extends LTuple<Object>, LBoolSingle
Exact equivalent of input parameters used in LBiBoolConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBoolPair.AbstractBoolPair |
static interface |
LBoolPair.ComparableBoolPair |
static class |
LBoolPair.ImmBoolPair
Immutable, non-comparable tuple.
|
static class |
LBoolPair.ImmCompBoolPair
Immutable, comparable tuple.
|
static class |
LBoolPair.MutBoolPair
Mutable, non-comparable tuple.
|
static class |
LBoolPair.MutCompBoolPair
Mutable, comparable tuple.
|
LBoolSingle.AbstractBoolSingle, LBoolSingle.ComparableBoolSingle, LBoolSingle.ImmBoolSingle, LBoolSingle.ImmCompBoolSingle, LBoolSingle.MutBoolSingle, LBoolSingle.MutCompBoolSingleLTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(boolean a1,
boolean a2,
boolean b1,
boolean b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LBoolPair and checks if all values are equal.
|
static boolean |
argEquals(LBoolPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static int |
argHashCode(boolean a1,
boolean a2)
Static hashCode() implementation method that takes same arguments as fields of the LBoolPair and calculates hash from it.
|
boolean |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
boolean |
second() |
default int |
size()
Tuple size
|
default boolean |
value() |
argEquals, argEquals, argHashCodestatic final int SIZE
boolean first()
first in interface LBoolSingledefault boolean value()
value in interface LBoolSingleboolean second()
default Object get(int index)
get in interface LBoolSingledefault int size()
Tuple size
size in interface LBoolSinglesize in interface LTuple<Object>static int argHashCode(boolean a1,
boolean a2)
Static hashCode() implementation method that takes same arguments as fields of the LBoolPair and calculates hash from it.
static boolean argEquals(boolean a1,
boolean a2,
boolean b1,
boolean b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LBoolPair and checks if all values are equal.
static boolean argEquals(LBoolPair 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 LBoolSingleCopyright © 2019. All rights reserved.