[Java] Class NonEmptySequence
- groovy.lang.NonEmptySequence
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.
Constructor Summary
Constructor and description |
---|
NonEmptySequence
() |
NonEmptySequence
(Class type) |
NonEmptySequence
(Class type, List content) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public 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 |
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/3.0.7/html/gapi/groovy/lang/NonEmptySequence.html