|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.cognitive.ListSet
An Ordered, non-duplicated collecton of objects (not exactly a mathemetical set because it is ordered).
| Constructor Summary | |
ListSet()
The constructor. |
|
ListSet(int n)
The constructor. |
|
ListSet(Object o1)
The constructor. |
|
| Method Summary | |
void |
add(int arg0,
Object arg1)
|
boolean |
add(Object arg0)
|
boolean |
addAll(Collection arg0)
|
boolean |
addAll(int arg0,
Collection arg1)
|
void |
addAllElements(Collection v)
|
void |
addAllElements(Enumeration iter)
|
void |
addAllElements(Iterator iter)
|
void |
addAllElements(ListSet s)
|
void |
addAllElementsSuchThat(Enumeration iter,
Predicate p)
|
void |
addAllElementsSuchThat(Iterator iter,
Predicate p)
|
void |
addAllElementsSuchThat(ListSet s,
Predicate p)
|
void |
addElement(Object o)
|
Vector |
asVector()
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection arg0)
|
boolean |
containsSuchThat(Predicate p)
|
Object |
elementAt(int index)
|
Enumeration |
elements()
|
boolean |
equals(Object o)
|
Object |
findSuchThat(Predicate p)
Return the first object that causes the given predicate to return true. |
Object |
firstElement()
|
Object |
get(int index)
|
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
ListSet |
reachable(ChildGenerator cg)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. |
ListSet |
reachable(ChildGenerator cg,
int max,
Predicate p)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. |
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection arg0)
|
void |
removeAllElements()
Remove all objects. |
void |
removeElement(Object o)
|
boolean |
retainAll(Collection arg0)
|
Object |
set(int arg0,
Object o)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] arg0)
|
String |
toString()
|
ListSet |
transitiveClosure(ChildGenerator cg)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. |
ListSet |
transitiveClosure(ChildGenerator cg,
int max,
Predicate p)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ListSet()
public ListSet(int n)
n - the initial capacity of the vectorpublic ListSet(Object o1)
o1 - the first object to add| Method Detail |
public void addElement(Object o)
o - the object to addpublic void addAllElements(Collection v)
v - a collection of objects to be addedpublic void addAllElements(Enumeration iter)
iter - an enumeration of objects to be addedpublic void addAllElements(Iterator iter)
iter - an iterator of objects to be added
public void addAllElementsSuchThat(Enumeration iter,
Predicate p)
iter - an enumeration of objects to be addedp - the predicate the objects have to fulfill to be added
public void addAllElementsSuchThat(Iterator iter,
Predicate p)
iter - an iterator of objects to be addedp - the predicate the objects have to fulfill to be addedpublic void addAllElements(ListSet s)
s - a listset of objects to be added
public void addAllElementsSuchThat(ListSet s,
Predicate p)
s - a listset of objects to be addedp - the predicate the objects have to fulfill to be addedpublic boolean remove(Object o)
remove in interface SetCollection.remove(java.lang.Object)public void removeElement(Object o)
o - the object to be removedpublic void removeAllElements()
public boolean contains(Object o)
contains in interface SetCollection.contains(java.lang.Object)public boolean containsSuchThat(Predicate p)
p - the predicate the objects have to fulfill
public Object findSuchThat(Predicate p)
p - the predicate the objects have to fulfill
public Enumeration elements()
public Object elementAt(int index)
index - the location
public Vector asVector()
public int hashCode()
hashCode in interface SetThis will result in rather bad performance but at least we will
not violate the contract together with {@link #equals(Object)}.public boolean equals(Object o)
equals in interface SetObject.equals(java.lang.Object)public Object firstElement()
public int size()
size in interface SetCollection.size()public String toString()
Object.toString()public ListSet transitiveClosure(ChildGenerator cg)
cg - the given childgenerator
public ListSet reachable(ChildGenerator cg)
cg - the given childgenerator
public ListSet reachable(ChildGenerator cg,
int max,
Predicate p)
cg - the given childgeneratormax - the maximum depthp - the predicate the objects have to fulfill
public ListSet transitiveClosure(ChildGenerator cg,
int max,
Predicate p)
cg - the given childgeneratormax - the maximum depthp - the predicate the objects have to fulfill
public boolean isEmpty()
isEmpty in interface SetCollection.isEmpty()public Iterator iterator()
iterator in interface SetCollection.iterator()public Object[] toArray()
toArray in interface SetCollection.toArray()public Object[] toArray(Object[] arg0)
toArray in interface SetCollection.toArray(java.lang.Object[])public boolean add(Object arg0)
add in interface SetCollection.add(java.lang.Object)public boolean containsAll(Collection arg0)
containsAll in interface SetCollection.containsAll(java.util.Collection)public boolean addAll(Collection arg0)
addAll in interface SetCollection.addAll(java.util.Collection)public boolean retainAll(Collection arg0)
retainAll in interface SetCollection.retainAll(java.util.Collection)public boolean removeAll(Collection arg0)
removeAll in interface SetCollection.removeAll(java.util.Collection)public void clear()
clear in interface SetCollection.clear()
public boolean addAll(int arg0,
Collection arg1)
addAll in interface ListList.addAll(int, java.util.Collection)public Object get(int index)
get in interface ListList.get(int)
public Object set(int arg0,
Object o)
set in interface ListList.set(int, java.lang.Object)
public void add(int arg0,
Object arg1)
add in interface ListList.add(int, java.lang.Object)public Object remove(int index)
remove in interface ListList.remove(int)public int indexOf(Object o)
indexOf in interface ListList.indexOf(java.lang.Object)public int lastIndexOf(Object o)
lastIndexOf in interface ListList.lastIndexOf(java.lang.Object)public ListIterator listIterator()
listIterator in interface ListList.listIterator()public ListIterator listIterator(int index)
listIterator in interface ListList.listIterator(int)
public List subList(int fromIndex,
int toIndex)
subList in interface ListList.subList(int, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |