Package groovy.lang
Class NonEmptySequence
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
groovy.lang.Sequence
groovy.lang.NonEmptySequence
- All Implemented Interfaces:
- GroovyObject,- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable,- java.util.Collection,- java.util.List,- java.util.RandomAccess
public class NonEmptySequence extends Sequence
Represents a sequence of one or more objects of a given type.
 The type can be omitted in which case any type of object can be added.
- See Also:
- Serialized Form
- 
Field SummaryFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors Constructor Description NonEmptySequence()NonEmptySequence(java.lang.Class type)NonEmptySequence(java.lang.Class type, java.util.List content)
- 
Method SummaryModifier and Type Method Description intminimumSize()Methods inherited from class groovy.lang.Sequenceadd, add, addAll, addAll, checkCollectionType, checkType, clear, equals, equals, getMetaClass, getProperty, hashCode, invokeMethod, remove, removeRange, set, set, setMetaClass, setProperty, typeMethods inherited from class java.util.ArrayListclone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollectioncontainsAll, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, stream, toArrayMethods inherited from interface java.util.ListcontainsAll
- 
Constructor Details- 
NonEmptySequencepublic NonEmptySequence()
- 
NonEmptySequencepublic NonEmptySequence(java.lang.Class type)
- 
NonEmptySequencepublic NonEmptySequence(java.lang.Class type, java.util.List content)
 
- 
- 
Method Details- 
minimumSizepublic int minimumSize()- Overrides:
- minimumSizein class- Sequence
 
 
-