public final class Tuple2<A,B> extends Tuple implements Map.Entry<A,B>
| 限定符和类型 | 方法和说明 |
|---|---|
Tuple2<A,B> |
copy()
Returns a copy of this instance.
|
<T> T |
get(int index)
Get the object at the given index.
|
A |
getKey() |
B |
getValue() |
int |
length()
Returns int value of this tuple elements count.
|
static <A,B> Tuple2<A,B> |
of(A a,
B b) |
<T> void |
set(T value,
int index)
Set the value at the given index.
|
B |
setValue(B value) |
Tuple2<B,A> |
swap()
Returns a Tuple2 Object of this instance swapped values.
|
compareTo, equals, equals, forEach, hashCode, iterator, join, spliterator, toArray, toList, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic static <A,B> Tuple2<A,B> of(A a, B b)
public <T> T get(int index)
Tuplepublic <T> void set(T value,
int index)
Tuplepublic int length()
Tuplepublic Tuple2<B,A> swap()
Copyright © 2025. All rights reserved.