Package groovy.lang
Class NonEmptySequence
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
groovy.lang.Sequence
groovy.lang.NonEmptySequence
- All Implemented Interfaces:
GroovyObject,Serializable,Cloneable,Iterable,Collection,List,RandomAccess,SequencedCollection
Represents a sequence of objects which represents one or many instances of
of objects of a given type. The type can be omitted in which case any type of
object can be added.
- Version:
- $Revision$
- Author:
- James Strachan
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class groovy.lang.Sequence
add, add, addAll, addAll, checkCollectionType, checkType, clear, equals, equals, getMetaClass, getProperty, hashCode, invokeMethod, remove, removeRange, set, set, setMetaClass, setProperty, typeMethods inherited from class java.util.ArrayList
addFirst, addLast, clone, contains, ensureCapacity, forEach, get, getFirst, getLast, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeFirst, removeIf, removeLast, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
NonEmptySequence
public NonEmptySequence() -
NonEmptySequence
-
NonEmptySequence
-
-
Method Details
-
minimumSize
public int minimumSize()- Overrides:
minimumSizein classSequence
-