public class Tuple<K,V> extends Object implements Serializable, Cloneable, Iterable<Pair<K,V>>
| Constructor and Description |
|---|
Tuple() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple<K,V> tuple) |
void |
addPair(int index,
K key,
V value) |
void |
addPair(K key,
V value) |
Map<K,List<V>> |
asMap() |
void |
clear() |
Object |
clone() |
boolean |
containsKey(K key) |
boolean |
containsKeyValuePair(K key,
V value) |
K |
getKey(int index) |
List<K> |
getKeys() |
Set<K> |
getUniqueKeys() |
V |
getValue(int index) |
V |
getValue(K key) |
List<V> |
getValues(K key) |
int |
indexOfKey(K key) |
Iterator<Pair<K,V>> |
iterator() |
void |
removeKey(K key) |
V |
removePair(int index) |
V |
removePair(K key) |
void |
setPair(int index,
K key,
V value) |
void |
setPair(K key,
V value) |
void |
setValue(int index,
V value) |
void |
setValue(K key,
V value) |
int |
size() |
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic void clear()
public void removeKey(K key)
public V removePair(int index)
public void setValue(int index,
V value)
public int size()
public K getKey(int index)
public int indexOfKey(K key)
public V getValue(int index)
public boolean containsKey(K key)
Copyright © 2019. All rights reserved.