| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private transient MetaClass | |
| private static final long | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Overrides java. Implements java. |
| public boolean | add(Object
element to be appended to this list element)Overrides java. Implements java. |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this list c)Overrides java. Implements java. |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<E> collection containing elements to be added to this list c)Overrides java. Implements java. |
| protected void | checkCollectionType(Collection<E> c)
Checks that each member of the given collection are of the correct type |
| protected void | |
| public void | clear()
Overrides java. Implements java. |
| public boolean | equals(Object
the object to be compared for equality with this list that)Overrides java. Implements java. |
| public boolean | |
| public MetaClass | getMetaClass()
Implements groovy. |
| public Object | getProperty(String
the name of the property of interest property)Overrides default groovy. |
| public int | hashCode()
Overrides java. Implements java. |
| public Object | invokeMethod(String
the name of the method to call name, Object the arguments to use for the method call args)Overrides default groovy. |
| public int | |
| public Object | remove(int
the index of the element to be removed index)Overrides java. Implements java. |
| protected void | removeRange(int
index of first element to be removed fromIndex, int index after last element to be removed toIndex)Overrides java. fromIndex, inclusive, and toIndex, exclusive.
|
| public void | |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Overrides java. Implements java. |
| public void | setMetaClass(MetaClass
the new metaclass metaClass)Implements groovy. |
| public void | setProperty(String
the name of the property of interest property, Object the new value for the property newValue)Overrides default groovy. |
| public Class | Returns: the type of the elements in the sequence or null if there is no type constraint on this sequence
|
| hashCode | back to summary |
|---|---|
| private int hashCode | |
| metaClass | back to summary |
|---|---|
| private transient MetaClass metaClass | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| Sequence | back to summary |
|---|---|
| public Sequence() | |
| Sequence | back to summary |
|---|---|
| public Sequence(Class<T> type) | |
| Sequence | back to summary |
|---|---|
| public Sequence(Class<T> type, List<E> content) | |
| add | back to summary |
|---|---|
| public void add(int index, Object element) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| add | back to summary |
|---|---|
| public boolean add(Object element) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list.
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<E> c) Overrides java. Implements java. Doc from java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<E> c) Overrides java. Implements java. Doc from java. Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.
| |
| checkCollectionType | back to summary |
|---|---|
| protected void checkCollectionType(Collection<E> c) Checks that each member of the given collection are of the correct type | |
| checkType | back to summary |
|---|---|
| protected void checkType(Object object) Checks that the given object instance is of the correct type otherwise a runtime exception is thrown | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list. The list will be empty after this call returns. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Implements java. Doc from java. Compares the specified object with this list for equality. Returns
| |
| equals | back to summary |
|---|---|
| public boolean equals(Sequence that) | |
| getMetaClass | back to summary |
|---|---|
| public MetaClass getMetaClass() Implements groovy. Doc from groovy. Returns the metaclass for a given class.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String property) Overrides default groovy. Doc from groovy. Retrieves a property value. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this list. The hash code of a list is defined to be the result of the following calculation:
This ensures that list1.equals(list2) implies that
list1.hashCode()==list2.hashCode() for any two lists,
list1 and list2, as required by the general
contract of Object#hashCode.
| |
| invokeMethod | back to summary |
|---|---|
| public Object invokeMethod(String name, Object args) Overrides default groovy. Doc from groovy. Invokes the given method. | |
| minimumSize | back to summary |
|---|---|
| public int minimumSize() | |
| remove | back to summary |
|---|---|
| public Object remove(int index) Overrides java. Implements java. Doc from java. Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).
| |
| removeRange | back to summary |
|---|---|
| protected void removeRange(int fromIndex, int toIndex) Overrides java. Doc from java. Removes from this list all of the elements whose index is between
| |
| set | back to summary |
|---|---|
| public void set(Collection<E> collection) Sets the contents of this sequence to that of the given collection. | |
| set | back to summary |
|---|---|
| public Object set(int index, Object element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element. | |
| setMetaClass | back to summary |
|---|---|
| public void setMetaClass(MetaClass metaClass) Implements groovy. Doc from groovy. Allows the MetaClass to be replaced with a derived implementation.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String property, Object newValue) Overrides default groovy. Doc from groovy. Sets the given property to the new value. | |
| type | back to summary |
|---|---|
public Class
| |