Class GridTuple6<V1,V2,V3,V4,V5,V6>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.GridTuple6<V1,V2,V3,V4,V5,V6>
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Iterable<Object>
- Direct Known Subclasses:
T6
public class GridTuple6<V1,V2,V3,V4,V5,V6> extends Object implements Iterable<Object>, Externalizable, Cloneable
Convenience class representing mutable tuple of six 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 GridTuple6()Empty constructor required byExternalizable.GridTuple6(V1 v1, V2 v2, V3 v3, V4 v4, V5 v5, V6 v6)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.V4get4()Gets forth value.V5get5()Gets fifth value.V6get6()Gets sizth value.inthashCode()Iterator<Object>iterator()voidreadExternal(ObjectInput in)voidset(V1 val1, V2 val2, V3 val3, V4 val4, V5 val5, V6 val6)Sets all values.voidset1(V1 v1)Sets first value.voidset2(V2 v2)Sets second value.voidset3(V3 v3)Sets third value.voidset4(V4 v4)Sets forth value.voidset5(V5 v5)Sets fifth value.voidset6(V6 v6)Sets sixth 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
-
GridTuple6
public GridTuple6()
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.
-
get4
@Nullable public V4 get4()
Gets forth value.- Returns:
- Forth value.
-
get5
@Nullable public V5 get5()
Gets fifth value.- Returns:
- Fifth value.
-
get6
@Nullable public V6 get6()
Gets sizth value.- Returns:
- Sizth value.
-
set1
public void set1(@Nullable V1 v1)Sets first value.- Parameters:
v1- First value.
-
set2
public void set2(@Nullable V2 v2)Sets second value.- Parameters:
v2- Second value.
-
set3
public void set3(@Nullable V3 v3)Sets third value.- Parameters:
v3- Third value.
-
set4
public void set4(@Nullable V4 v4)Sets forth value.- Parameters:
v4- Forth value.
-
set5
public void set5(@Nullable V5 v5)Sets fifth value.- Parameters:
v5- Fifth value.
-
set6
public void set6(@Nullable V6 v6)Sets sixth value.- Parameters:
v6- Sixth value.
-
set
public void set(@Nullable V1 val1, @Nullable V2 val2, @Nullable V3 val3, @Nullable V4 val4, @Nullable V5 val5, @Nullable V6 val6)Sets all values.- Parameters:
val1- First value.val2- Second value.val3- Third value.val4- Fourth value.val5- Fifth value.val6- Sixth 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
-
-