|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.cognitive.ListSet<T>
T - The type of objects this ListSet is to contain.public class ListSet<T>
An Ordered, non-duplicated collection of objects (not exactly a mathematical set because it is ordered).
| Constructor Summary | |
|---|---|
ListSet()
The constructor. |
|
ListSet(int n)
The constructor. |
|
ListSet(T o1)
The constructor. |
|
| Method Summary | ||
|---|---|---|
void |
add(int arg0,
T arg1)
|
|
boolean |
add(T arg0)
|
|
boolean |
addAll(java.util.Collection<? extends T> arg0)
|
|
boolean |
addAll(int arg0,
java.util.Collection<? extends T> arg1)
|
|
void |
addAllElements(java.util.Enumeration<T> iter)
|
|
void |
addAllElements(java.util.Iterator<T> iter)
|
|
void |
addAllElementsSuchThat(java.util.Iterator<T> iter,
Predicate p)
|
|
void |
addAllElementsSuchThat(ListSet<T> s,
Predicate p)
|
|
void |
clear()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection arg0)
|
|
boolean |
containsSuchThat(Predicate p)
|
|
boolean |
equals(java.lang.Object o)
|
|
java.lang.Object |
findSuchThat(Predicate p)
Return the first object that causes the given predicate to return true. |
|
T |
get(int index)
|
|
int |
hashCode()
|
|
int |
indexOf(java.lang.Object o)
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<T> |
iterator()
|
|
int |
lastIndexOf(java.lang.Object o)
|
|
java.util.ListIterator<T> |
listIterator()
|
|
java.util.ListIterator<T> |
listIterator(int index)
|
|
java.lang.Object |
mutex()
|
|
ListSet<T> |
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<T> |
reachable(ChildGenerator cg,
int max,
Predicate predicate)
Reply the Set of all objects that can be reached from the receiving Set by taking steps defined by the given ChildGenerator. |
|
T |
remove(int index)
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection arg0)
|
|
void |
removeAllElements()
Remove all objects. |
|
void |
removeElement(java.lang.Object o)
|
|
boolean |
retainAll(java.util.Collection<?> arg0)
|
|
T |
set(int arg0,
T o)
|
|
int |
size()
|
|
java.util.List<T> |
subList(int fromIndex,
int toIndex)
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(A[] arg0)
|
|
java.lang.String |
toString()
|
|
ListSet<T> |
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<T> |
transitiveClosure(ChildGenerator cg,
int max,
Predicate predicate)
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 ListSetpublic ListSet(T o1)
o1 - the first object to add| Method Detail |
|---|
public void addAllElements(java.util.Enumeration<T> iter)
iter - an enumeration of objects to be addedpublic void addAllElements(java.util.Iterator<T> iter)
iter - an iterator of objects to be added
public void addAllElementsSuchThat(java.util.Iterator<T> iter,
Predicate p)
iter - an iterator of objects to be addedp - the predicate the objects have to fulfill to be added
public void addAllElementsSuchThat(ListSet<T> s,
Predicate p)
s - a listset of objects to be addedp - the predicate the objects have to fulfill to be addedpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>remove in interface java.util.List<T>remove in interface java.util.Set<T>public void removeElement(java.lang.Object o)
o - the object to be removedpublic void removeAllElements()
public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>contains in interface java.util.List<T>contains in interface java.util.Set<T>public boolean containsSuchThat(Predicate p)
p - the predicate the objects have to fulfill
public java.lang.Object findSuchThat(Predicate p)
p - the predicate the objects have to fulfill
public int hashCode()
hashCode in interface java.util.Collection<T>hashCode in interface java.util.List<T>hashCode in interface java.util.Set<T>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<T>equals in interface java.util.List<T>equals in interface java.util.Set<T>equals in class java.lang.Objectpublic int size()
size in interface java.util.Collection<T>size in interface java.util.List<T>size in interface java.util.Set<T>public java.lang.String toString()
toString in class java.lang.Objectpublic ListSet<T> transitiveClosure(ChildGenerator cg)
cg - the given childgenerator
public ListSet<T> reachable(ChildGenerator cg)
cg - the given childgenerator
public ListSet<T> reachable(ChildGenerator cg,
int max,
Predicate predicate)
cg - the given childgeneratormax - the maximum depthpredicate - the predicate the objects have to fulfill
public ListSet<T> transitiveClosure(ChildGenerator cg,
int max,
Predicate predicate)
cg - the given childgeneratormax - the maximum depthpredicate - the predicate the objects have to fulfill
public boolean isEmpty()
isEmpty in interface java.util.Collection<T>isEmpty in interface java.util.List<T>isEmpty in interface java.util.Set<T>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface java.util.List<T>iterator in interface java.util.Set<T>public java.lang.Object mutex()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>toArray in interface java.util.List<T>toArray in interface java.util.Set<T>public <A> A[] toArray(A[] arg0)
toArray in interface java.util.Collection<T>toArray in interface java.util.List<T>toArray in interface java.util.Set<T>public boolean add(T arg0)
add in interface java.util.Collection<T>add in interface java.util.List<T>add in interface java.util.Set<T>public boolean containsAll(java.util.Collection arg0)
containsAll in interface java.util.Collection<T>containsAll in interface java.util.List<T>containsAll in interface java.util.Set<T>public boolean addAll(java.util.Collection<? extends T> arg0)
addAll in interface java.util.Collection<T>addAll in interface java.util.List<T>addAll in interface java.util.Set<T>public boolean retainAll(java.util.Collection<?> arg0)
retainAll in interface java.util.Collection<T>retainAll in interface java.util.List<T>retainAll in interface java.util.Set<T>public boolean removeAll(java.util.Collection arg0)
removeAll in interface java.util.Collection<T>removeAll in interface java.util.List<T>removeAll in interface java.util.Set<T>public void clear()
clear in interface java.util.Collection<T>clear in interface java.util.List<T>clear in interface java.util.Set<T>
public boolean addAll(int arg0,
java.util.Collection<? extends T> arg1)
addAll in interface java.util.List<T>public T get(int index)
get in interface java.util.List<T>
public T set(int arg0,
T o)
set in interface java.util.List<T>
public void add(int arg0,
T arg1)
add in interface java.util.List<T>public T remove(int index)
remove in interface java.util.List<T>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<T>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<T>public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T>public java.util.ListIterator<T> listIterator(int index)
listIterator in interface java.util.List<T>
public java.util.List<T> subList(int fromIndex,
int toIndex)
subList in interface java.util.List<T>
|
||||||||||
| 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 |