| java.util.ArrayList groovy.lang.Sequence
All known Subclasses: groovy.lang.NonEmptySequence,
Sequence | public class Sequence extends ArrayList implements GroovyObject(Code) | | Represents a sequence of objects which represents zero or many instances of
of objects of a given type. The type can be ommitted in which case any type of
object can be added.
author: James Strachan version: $Revision: 4098 $ |
Sequence | public Sequence()(Code) | | |
checkCollectionType | protected void checkCollectionType(Collection c)(Code) | | Checks that each member of the given collection are of the correct
type
|
checkType | protected void checkType(Object object)(Code) | | Checks that the given object instance is of the correct type
otherwise a runtime exception is thrown
|
clear | public void clear()(Code) | | |
hashCode | public int hashCode()(Code) | | |
minimumSize | public int minimumSize()(Code) | | |
removeRange | protected void removeRange(int fromIndex, int toIndex)(Code) | | |
set | public void set(Collection collection)(Code) | | Sets the contents of this sequence to that
of the given collection.
|
type | public Class type()(Code) | | the type of the elements in the sequence or null if there is notype constraint on this sequence |
|
|