Package groovy.lang
Class Tuple4<T1,T2,T3,T4>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
groovy.lang.Tuple
groovy.lang.Tuple4<T1,T2,T3,T4>
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,Iterable,Collection,List,RandomAccess
Represents a list of 4 typed Objects.
- Since:
- 2.5.0
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class groovy.lang.Tuple
compareTo, equals, get, hashCode, size, subList, subTuple, toArray, toArray, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tupleMethods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator
-
Constructor Details
-
Tuple4
Creates a tuple containing the supplied elements.- Parameters:
v1- the first elementv2- the second elementv3- the third elementv4- the fourth element
-
Tuple4
Creates a tuple from the supplied tuple.- Parameters:
tuple- the source tuple
-
-
Method Details
-
getFirst
Deprecated.Returns the first element.- Returns:
- the first element
-
getSecond
Deprecated.Returns the second element.- Returns:
- the second element
-
getThird
Deprecated.Returns the third element.- Returns:
- the third element
-
getFourth
Deprecated.Returns the fourth element.- Returns:
- the fourth element
-
getV1
Returns the first element.- Returns:
- the first element
-
getV2
Returns the second element.- Returns:
- the second element
-
getV3
Returns the third element.- Returns:
- the third element
-
getV4
Returns the fourth element.- Returns:
- the fourth element
-
clone
-