Package groovy.lang

Class 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
    • Constructor Detail

      • NonEmptySequence

        public NonEmptySequence()
      • NonEmptySequence

        public NonEmptySequence​(java.lang.Class type)
      • NonEmptySequence

        public NonEmptySequence​(java.lang.Class type,
                                java.util.List content)