Class GridTuple3<V1,V2,V3>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.GridTuple3<V1,V2,V3>
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Iterable<Object>
- Direct Known Subclasses:
GridTriple,T3
public class GridTuple3<V1,V2,V3> extends Object implements Iterable<Object>, Externalizable, Cloneable
Convenience class representing mutable tuple of three values.Thread Safety
This class doesn't provide any synchronization for multi-threaded access and it is responsibility of the user of this class to provide outside synchronization, if needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridTuple3()Empty constructor required byExternalizable.GridTuple3(V1 val1, V2 val2, V3 val3)Fully initializes this tuple.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object o)V1get1()Gets first value.V2get2()Gets second value.V3get3()Gets third value.inthashCode()Iterator<Object>iterator()voidreadExternal(ObjectInput in)voidset(V1 val1, V2 val2, V3 val3)Sets all values.voidset1(V1 val1)Sets first value.voidset2(V2 val2)Sets second value.voidset3(V3 val3)Sets third value.StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
GridTuple3
public GridTuple3()
Empty constructor required byExternalizable.
-
-
Method Detail
-
get1
@Nullable public V1 get1()
Gets first value.- Returns:
- First value.
-
get2
@Nullable public V2 get2()
Gets second value.- Returns:
- Second value.
-
get3
@Nullable public V3 get3()
Gets third value.- Returns:
- Third value.
-
set1
public void set1(@Nullable V1 val1)Sets first value.- Parameters:
val1- First value.
-
set2
public void set2(@Nullable V2 val2)Sets second value.- Parameters:
val2- Second value.
-
set3
public void set3(@Nullable V3 val3)Sets third value.- Parameters:
val3- Third value.
-
set
public void set(@Nullable V1 val1, @Nullable V2 val2, @Nullable V3 val3)Sets all values.- Parameters:
val1- First value.val2- Second value.val3- Third value.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-