public abstract class Tuple extends Object implements Comparable<Object>, Iterable<Object>, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HASH_FACTOR |
| 构造器和说明 |
|---|
Tuple() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Object o) |
abstract <T> T |
copy()
Returns a copy of this instance.
|
abstract boolean |
equals(Object obj)
Override the Object equals method as abstract.
|
abstract <T> T |
get(int index)
Get the object at the given index.
|
abstract int |
hashCode()
Override the Object hashCode method as abstract.
|
Iterator<Object> |
iterator()
Return an immutable
Iterator<Object> around
the content of this Tuple. |
String |
join() |
String |
join(CharSequence delimiter,
Function<Object,String> valueMapper,
CharSequence prefix,
CharSequence suffix)
Returns string of joined the tuple elements.
|
abstract int |
length()
Returns int value of this tuple elements count.
|
abstract <T> void |
set(T value,
int index)
Set the value at the given index.
|
Spliterator<Object> |
spliterator() |
abstract Object[] |
toArray()
Turn this
Tuple into a plain Object[]. |
List<Object> |
toList()
Turn this
Tuple into a List<Object>. |
abstract String |
toString()
Override the Object toString method as abstract.
|
public static final int HASH_FACTOR
public abstract <T> T get(int index)
index - The index of the object to retrieve. Starts at 0.public abstract <T> void set(T value,
int index)
value - The object value.index - The index of the object to retrieve. Starts at 0.public abstract Object[] toArray()
Tuple into a plain Object[].
The array isn't tied to this Tuple but is a copy.Object[].public abstract String toString()
public abstract boolean equals(Object obj)
public abstract int hashCode()
public abstract <T> T copy()
public abstract int length()
public List<Object> toList()
Tuple into a List<Object>.
The list isn't tied to this Tuple but is a copy with limited
mutability (add and remove are not supported, but set is).List<Object>.public Iterator<Object> iterator()
Iterator<Object> around
the content of this Tuple.public Spliterator<Object> spliterator()
spliterator 在接口中 Iterable<Object>public final int compareTo(Object o)
compareTo 在接口中 Comparable<Object>public final String join()
public final String join(CharSequence delimiter, Function<Object,String> valueMapper, CharSequence prefix, CharSequence suffix)
delimiter - the delimitervalueMapper - the valueMapper for each element to string functionprefix - the prefixsuffix - the suffixCopyright © 2023. All rights reserved.