Package groovy.lang

Class NonEmptySequence

All Implemented Interfaces:
GroovyObject, Serializable, Cloneable, Iterable, Collection, List, 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:
  • Constructor Details

    • NonEmptySequence

      public NonEmptySequence()
    • NonEmptySequence

      public NonEmptySequence(Class type)
    • NonEmptySequence

      public NonEmptySequence(Class type, List content)
  • Method Details