public class IgniteBiTuple<V1,V2> extends Object implements Map<V1,V2>, Map.Entry<V1,V2>, Iterable<Object>, Externalizable, Cloneable
| Constructor and Description |
|---|
IgniteBiTuple()
Empty constructor required by
Externalizable. |
IgniteBiTuple(V1 val1,
V2 val2)
Fully initializes this tuple.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
clone() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object val) |
Set<Map.Entry<V1,V2>> |
entrySet() |
boolean |
equals(Object o) |
V2 |
get(Object key) |
V1 |
get1()
Gets first value.
|
V2 |
get2()
Gets second value.
|
V1 |
getKey() |
V2 |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
Set<V1> |
keySet() |
V2 |
put(V1 key,
V2 val) |
void |
putAll(Map<? extends V1,? extends V2> m) |
void |
readExternal(ObjectInput in) |
V2 |
remove(Object key) |
void |
set(V1 val1,
V2 val2)
Sets both values in the tuple.
|
void |
set1(V1 val1)
Sets first value.
|
void |
set2(V2 val2)
Sets second value.
|
V2 |
setValue(V2 val) |
int |
size() |
IgniteBiTuple<V2,V1> |
swap()
Swaps values.
|
String |
toString() |
Collection<V2> |
values() |
void |
writeExternal(ObjectOutput out) |
public IgniteBiTuple()
Externalizable.public IgniteBiTuple<V2,V1> swap()
public V1 get1()
public V2 get2()
public void set1(@Nullable
V1 val1)
val1 - First value.public void set2(@Nullable
V2 val2)
val2 - Second value.public void set(@Nullable
V1 val1,
@Nullable
V2 val2)
val1 - First value.val2 - Second value.public boolean containsKey(Object key)
containsKey in interface Map<V1,V2>public boolean containsValue(Object val)
containsValue in interface Map<V1,V2>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic int hashCode()
public boolean equals(Object o)
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016