| 构造器和说明 |
|---|
Tuple() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Object o) |
abstract <T extends Tuple> |
copy()
Returns a copy of this instance.
|
boolean |
equals(Object... elements)
Returns tuple elements are equals array elements.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
abstract <T> T |
get(int index)
Get the object at the given index.
|
int |
hashCode()
Returns a hash code value for the object.
|
Iterator<Object> |
iterator()
Return an immutable
Iterator<Object> around
the content of this Tuple. |
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() |
Object[] |
toArray()
Turn this
Tuple into a plain Object[]. |
List<Object> |
toList()
Turn this
Tuple into a List<Object>. |
String |
toString()
Returns a string representation of the object.
|
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 <T extends Tuple> T copy()
public abstract int length()
public final Object[] toArray()
Tuple into a plain Object[].
The array isn't tied to this Tuple but is a copy.Object[].public final String toString()
public final int hashCode()
public final boolean equals(Object obj)
public final boolean equals(Object... elements)
elements - the elementstrue if elements equals.public final int compareTo(Object o)
compareTo 在接口中 Comparable<Object>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 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.