public interface LDblPair extends LTuple<Object>, LDblSingle
Exact equivalent of input parameters used in LBiDblConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LDblPair.AbstractDblPair |
static interface |
LDblPair.ComparableDblPair |
static class |
LDblPair.ImmCompDblPair
Immutable, comparable tuple.
|
static class |
LDblPair.ImmDblPair
Immutable, non-comparable tuple.
|
static class |
LDblPair.MutCompDblPair
Mutable, comparable tuple.
|
static class |
LDblPair.MutDblPair
Mutable, non-comparable tuple.
|
LDblSingle.AbstractDblSingle, LDblSingle.ComparableDblSingle, LDblSingle.ImmCompDblSingle, LDblSingle.ImmDblSingle, LDblSingle.MutCompDblSingle, LDblSingle.MutDblSingleLTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(double a1,
double a2,
double b1,
double b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LDblPair and checks if all values are equal.
|
static boolean |
argEquals(LDblPair the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static int |
argHashCode(double a1,
double a2)
Static hashCode() implementation method that takes same arguments as fields of the LDblPair and calculates hash from it.
|
double |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
double |
second() |
default int |
size()
Tuple size
|
default double |
value() |
argEquals, argEquals, argHashCodestatic final int SIZE
double first()
first in interface LDblSingledefault double value()
value in interface LDblSingledouble second()
default Object get(int index)
get in interface LDblSingledefault int size()
Tuple size
size in interface LDblSinglesize in interface LTuple<Object>static int argHashCode(double a1,
double a2)
Static hashCode() implementation method that takes same arguments as fields of the LDblPair and calculates hash from it.
static boolean argEquals(double a1,
double a2,
double b1,
double b2)
Static equals() implementation that takes same arguments (doubled) as fields of the LDblPair and checks if all values are equal.
static boolean argEquals(LDblPair 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 LDblSingleCopyright © 2019. All rights reserved.