uk.ac.ucl.cs.emofocl.jmi.reflect.extended
Class Sequence
java.lang.Object
uk.ac.ucl.cs.emofocl.jmi.reflect.extended.OCLCollection
uk.ac.ucl.cs.emofocl.jmi.reflect.extended.Sequence
- All Implemented Interfaces:
- Iterable, Collection, List
public class Sequence
- extends OCLCollection
- implements List
- Author:
- James
Sequence
public Sequence(CollectionType type,
int lower,
int upper)
Sequence
public Sequence(Type elementType)
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
- Specified by:
size
in class OCLCollection
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection
- Specified by:
isEmpty
in interface List
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection
- Specified by:
contains
in interface List
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface List
- Specified by:
iterator
in class OCLCollection
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface List
toArray
public Object[] toArray(Object[] arg0)
- Specified by:
toArray
in interface Collection
- Specified by:
toArray
in interface List
add
public boolean add(Object arg0)
- Specified by:
add
in interface Collection
- Specified by:
add
in interface List
- Overrides:
add
in class OCLCollection
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection
- Specified by:
remove
in interface List
- Overrides:
remove
in class OCLCollection
containsAll
public boolean containsAll(Collection arg0)
- Specified by:
containsAll
in interface Collection
- Specified by:
containsAll
in interface List
addAll
public boolean addAll(Collection collection)
- Specified by:
addAll
in interface Collection
- Specified by:
addAll
in interface List
removeAll
public boolean removeAll(Collection collection)
- Specified by:
removeAll
in interface Collection
- Specified by:
removeAll
in interface List
retainAll
public boolean retainAll(Collection collection)
- Specified by:
retainAll
in interface Collection
- Specified by:
retainAll
in interface List
clear
public void clear()
- Specified by:
clear
in interface Collection
- Specified by:
clear
in interface List
get
public Object get(int index)
- Specified by:
get
in interface List
set
public Object set(int arg0,
Object arg1)
- Specified by:
set
in interface List
add
public void add(int arg0,
Object arg1)
- Specified by:
add
in interface List
remove
public Object remove(int index)
- Specified by:
remove
in interface List
addAll
public boolean addAll(int arg0,
Collection arg1)
- Specified by:
addAll
in interface List
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interface List
listIterator
public ListIterator listIterator()
- Specified by:
listIterator
in interface List
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIterator
in interface List
subList
public List subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface List
extHashValue
public int extHashValue()
- Specified by:
extHashValue
in class OCLCollection
extEquals
public boolean extEquals(Object other)
- Specified by:
extEquals
in class OCLCollection
equals
public boolean equals(Object other)
- Equal if all elements are equal.
- Specified by:
equals
in interface Collection
- Specified by:
equals
in interface List
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object