public interface LObjDblPair<T> extends LTuple<Object>, LSingle<T>
Exact equivalent of input parameters used in LObjDblConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LObjDblPair.AbstractObjDblPair<T> |
static interface |
LObjDblPair.ComparableObjDblPair<T extends Comparable<T>> |
static class |
LObjDblPair.ImmCompObjDblPair<T extends Comparable<T>>
Immutable, comparable tuple.
|
static class |
LObjDblPair.ImmObjDblPair<T>
Immutable, non-comparable tuple.
|
static class |
LObjDblPair.MutCompObjDblPair<T extends Comparable<T>>
Mutable, comparable tuple.
|
static class |
LObjDblPair.MutObjDblPair<T>
Mutable, non-comparable tuple.
|
LSingle.AbstractSingle<T>, LSingle.ComparableSingle<T extends Comparable<T>>, LSingle.ImmCompSingle<T extends Comparable<T>>, LSingle.ImmSingle<T>, LSingle.MutCompSingle<T extends Comparable<T>>, LSingle.MutSingle<T>LTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(LObjDblPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static <T> boolean |
argEquals(T a1,
double a2,
T b1,
double b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LObjDblPair and checks if all values are equal.
|
static <T> int |
argHashCode(T a1,
double a2)
Static hashCode() implementation method that takes same arguments as fields of the LObjDblPair and calculates hash from it.
|
T |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
double |
second() |
default int |
size()
Tuple size
|
default T |
value() |
argHashCodestatic final int SIZE
double second()
default int size()
Tuple size
static <T> int argHashCode(T a1,
double a2)
Static hashCode() implementation method that takes same arguments as fields of the LObjDblPair and calculates hash from it.
static <T> boolean argEquals(T a1,
double a2,
T b1,
double b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LObjDblPair and checks if all values are equal.
static boolean argEquals(LObjDblPair 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.
Copyright © 2019. All rights reserved.