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 and description |
|---|
NonEmptySequence()Creates a non-empty sequence with no type restriction. |
NonEmptySequence(Class type)Creates a non-empty sequence constrained to the supplied type. |
NonEmptySequence(Class type, List content)Creates a non-empty sequence initialized with the supplied content. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
minimumSize()Returns the minimum allowed size for this sequence.
|
| 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 |
Creates a non-empty sequence with no type restriction.
Creates a non-empty sequence constrained to the supplied type.
type - the allowed element typeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.