[Java] Class Tuple<E>

  • groovy.lang.Tuple
All Implemented Interfaces and Traits:
Serializable
public class Tuple
extends AbstractList

Represents a list of Objects.

Constructor Summary

Constructors
Constructor and description
Tuple (E... contents)

Methods Summary

Methods
Type Params Return Type Name and description
boolean equals(Object o)
E get(int index)
int hashCode()
int size()
List<E> subList(int fromIndex, int toIndex)
Tuple<E> subTuple(int fromIndex, int toIndex)

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class AbstractList add, add, remove, get, equals, hashCode, indexOf, clear, iterator, lastIndexOf, subList, addAll, set, listIterator, listIterator, remove, toString, contains, isEmpty, size, toArray, toArray, addAll, containsAll, removeAll, retainAll, wait, wait, wait, getClass, notify, notifyAll, stream, removeIf, parallelStream, forEach, replaceAll, size, spliterator, sort

Constructor Detail

@SafeVarargs public Tuple(E... contents)

Method Detail

@Override public boolean equals(Object o)

@Override public E get(int index)

@Override public int hashCode()

@Override public int size()

@SuppressWarnings("unchecked") @Override public List<E> subList(int fromIndex, int toIndex)

public Tuple<E> subTuple(int fromIndex, int toIndex)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/lang/Tuple.html