public interface LSingle<T> extends LTuple<Object>
Exact equivalent of input parameters used in LConsumer.
| Modifier and Type | Interface and Description |
|---|---|
static class |
LSingle.AbstractSingle<T> |
static interface |
LSingle.ComparableSingle<T extends Comparable<T>> |
static class |
LSingle.ImmCompSingle<T extends Comparable<T>>
Immutable, comparable tuple.
|
static class |
LSingle.ImmSingle<T>
Immutable, non-comparable tuple.
|
static class |
LSingle.MutCompSingle<T extends Comparable<T>>
Mutable, comparable tuple.
|
static class |
LSingle.MutSingle<T>
Mutable, non-comparable tuple.
|
LTuple.Void| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
argEquals(LSingle the,
Object that)
Static equals() implementation that takes two tuples asnd checks if they are equal.
|
static <T> boolean |
argEquals(T a,
T b)
Static equals() implementation that takes same arguments (doubled) as fields of the LSingle and checks if all values are equal.
|
static <T> int |
argHashCode(T a)
Static hashCode() implementation method that takes same arguments as fields of the LSingle and calculates hash from it.
|
default T |
first() |
default Object |
get(int index) |
default Iterator<Object> |
iterator() |
default int |
size()
Tuple size
|
T |
value() |
static final int SIZE
T value()
default T first()
default Object get(int index)
static <T> int argHashCode(T a)
Static hashCode() implementation method that takes same arguments as fields of the LSingle and calculates hash from it.
static <T> boolean argEquals(T a,
T b)
Static equals() implementation that takes same arguments (doubled) as fields of the LSingle and checks if all values are equal.
static boolean argEquals(LSingle 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.