[Java] Class NonEmptySequence
- groovy.lang.NonEmptySequence
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.
- Authors:
- James Strachan
Constructor Summary
Constructor and description |
---|
NonEmptySequence
() |
NonEmptySequence
(Class type) |
NonEmptySequence
(Class type, List content) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
int |
minimumSize() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Sequence | add, add, addAll, addAll, checkCollectionType, checkType, clear, equals, equals, getMetaClass, getProperty, hashCode, invokeMethod, minimumSize, remove, removeRange, set, set, setMetaClass, setProperty, type |
class ArrayList | add, add, remove, remove, get, clone, indexOf, clear, contains, isEmpty, iterator, lastIndexOf, replaceAll, size, subList, toArray, toArray, spliterator, addAll, addAll, forEach, set, ensureCapacity, trimToSize, listIterator, listIterator, removeAll, removeIf, retainAll, sort, equals, hashCode, toString, containsAll, wait, wait, wait, getClass, notify, notifyAll, stream, parallelStream |
Constructor Detail
public NonEmptySequence()
public NonEmptySequence(Class type)
public NonEmptySequence(Class type, List content)
Method Detail
public int minimumSize()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/lang/NonEmptySequence.html