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>
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:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required byExternalizable.GridTuple3(V1 val1, V2 val2, V3 val3) Fully initializes this tuple. -
Method Summary
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GridTuple3
public GridTuple3()Empty constructor required byExternalizable. -
GridTuple3
Fully initializes this tuple.- Parameters:
val1- First value.val2- Second value.val3- Third value.
-
-
Method Details
-
get1
Gets first value.- Returns:
- First value.
-
get2
Gets second value.- Returns:
- Second value.
-
get3
Gets third value.- Returns:
- Third value.
-
set1
Sets first value.- Parameters:
val1- First value.
-
set2
Sets second value.- Parameters:
val2- Second value.
-
set3
Sets third value.- Parameters:
val3- Third value.
-
set
Sets all values.- Parameters:
val1- First value.val2- Second value.val3- Third value.
-
iterator
-
clone
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
equals
-
hashCode
public int hashCode() -
toString
-