|
||||||||||
| 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.Collection<? extends T> v)
Deprecated. for 0.25.4 by tfmorris. Use addAll(Collection). |
|
void |
addAllElements(java.util.Enumeration<T> iter)
|
|
void |
addAllElements(java.util.Iterator<T> iter)
|
|
void |
addAllElements(ListSet<T> s)
Deprecated. for 0.25.4 by tfmorris. Use addAll(Collection). |
|
void |
addAllElementsSuchThat(java.util.Enumeration<T> iter,
org.tigris.gef.util.Predicate p)
Deprecated. for 02.6 by tfmorris. Use addAllElementsSuchThat(Iterator, org.argouml.util.Predicate) or
addAllElementsSuchThat(ListSet, org.argouml.util.Predicate). |
|
void |
addAllElementsSuchThat(java.util.Iterator<T> iter,
org.tigris.gef.util.Predicate p)
Deprecated. for 0.26 by tfmorris. Use addAllElementsSuchThat(Iterator, org.argouml.util.Predicate). |
|
void |
addAllElementsSuchThat(java.util.Iterator<T> iter,
org.argouml.util.Predicate p)
|
|
void |
addAllElementsSuchThat(ListSet<T> s,
org.tigris.gef.util.Predicate p)
Deprecated. for 0.26 by tfmorris. Use addAllElementsSuchThat(ListSet, org.argouml.util.Predicate). |
|
void |
addAllElementsSuchThat(ListSet<T> s,
org.argouml.util.Predicate p)
|
|
void |
addElement(T o)
Deprecated. for 0.25.4 by tfmorris. Use List methods instead of Vector methods. |
|
java.util.Vector<T> |
asVector()
Deprecated. for 0.25.4 by tfmorris. Use List methods instead of Vector methods. |
|
void |
clear()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection arg0)
|
|
boolean |
containsSuchThat(org.tigris.gef.util.Predicate p)
Deprecated. for 0.26 by tfmorris. Use containsSuchThat(org.argouml.util.Predicate). |
|
boolean |
containsSuchThat(org.argouml.util.Predicate p)
|
|
T |
elementAt(int index)
Deprecated. for 0.25.4 by tfmorris. Use get(int). |
|
java.util.Enumeration<T> |
elements()
Deprecated. for 0.25.4 by tfmorris. Use iterator(). |
|
boolean |
equals(java.lang.Object o)
|
|
java.lang.Object |
findSuchThat(org.tigris.gef.util.Predicate p)
Deprecated. for 0.26 by tfmorris. Use findSuchThat(org.argouml.util.Predicate). |
|
java.lang.Object |
findSuchThat(org.argouml.util.Predicate p)
Return the first object that causes the given predicate to return true. |
|
T |
firstElement()
Deprecated. for 0.25.4 by tfmorris. Use get(int) get(0). |
|
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)
|
|
ListSet<T> |
reachable(org.tigris.gef.util.ChildGenerator cg)
Deprecated. for 0.26 by tfmorris. Use reachable(org.argouml.util.ChildGenerator). |
|
ListSet<T> |
reachable(org.argouml.util.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(org.tigris.gef.util.ChildGenerator cg,
int max,
org.tigris.gef.util.Predicate p)
Deprecated. for 0.26 by tfmorris. Use reachable(org.argouml.util.ChildGenerator, int,
org.argouml.util.Predicate). |
|
ListSet<T> |
reachable(org.argouml.util.ChildGenerator cg,
int max,
org.argouml.util.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(org.tigris.gef.util.ChildGenerator cg)
Deprecated. for 0.26 by tfmorris. Use transitiveClosure(org.argouml.util.ChildGenerator). |
|
ListSet<T> |
transitiveClosure(org.argouml.util.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(org.tigris.gef.util.ChildGenerator cg,
int max,
org.tigris.gef.util.Predicate p)
Deprecated. for 0.26 by tfmorris. Use transitiveClosure(org.argouml.util.ChildGenerator, int,
org.argouml.util.Predicate). |
|
ListSet<T> |
transitiveClosure(org.argouml.util.ChildGenerator cg,
int max,
org.argouml.util.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 |
|---|
@Deprecated public void addElement(T o)
o - the object to add@Deprecated public void addAllElements(java.util.Collection<? extends T> v)
addAll(Collection).
v - a collection of objects to be addedpublic 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
@Deprecated
public void addAllElementsSuchThat(java.util.Iterator<T> iter,
org.tigris.gef.util.Predicate p)
addAllElementsSuchThat(Iterator, org.argouml.util.Predicate).
iter - an iterator of objects to be addedp - the predicate the objects have to fulfill to be added
public void addAllElementsSuchThat(java.util.Iterator<T> iter,
org.argouml.util.Predicate p)
iter - an iterator of objects to be addedp - the predicate the objects have to fulfill to be added@Deprecated public void addAllElements(ListSet<T> s)
addAll(Collection).
s - a listset of objects to be added
@Deprecated
public void addAllElementsSuchThat(ListSet<T> s,
org.tigris.gef.util.Predicate p)
addAllElementsSuchThat(ListSet, org.argouml.util.Predicate).
s - a listset of objects to be addedp - the predicate the objects have to fulfill to be added
public void addAllElementsSuchThat(ListSet<T> s,
org.argouml.util.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>@Deprecated public boolean containsSuchThat(org.tigris.gef.util.Predicate p)
containsSuchThat(org.argouml.util.Predicate).
p - the predicate the objects have to fulfill
public boolean containsSuchThat(org.argouml.util.Predicate p)
p - the predicate the objects have to fulfill
@Deprecated public java.lang.Object findSuchThat(org.tigris.gef.util.Predicate p)
findSuchThat(org.argouml.util.Predicate).
p - the predicate the objects have to fulfill
public java.lang.Object findSuchThat(org.argouml.util.Predicate p)
p - the predicate the objects have to fulfill
@Deprecated public java.util.Enumeration<T> elements()
iterator().
@Deprecated public T elementAt(int index)
get(int).
index - the location
@Deprecated
public void addAllElementsSuchThat(java.util.Enumeration<T> iter,
org.tigris.gef.util.Predicate p)
addAllElementsSuchThat(Iterator, org.argouml.util.Predicate) or
addAllElementsSuchThat(ListSet, org.argouml.util.Predicate).
iter - an enumeration of objects to be addedp - the predicate the objects have to fulfill to be added@Deprecated public java.util.Vector<T> asVector()
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.Object@Deprecated public T firstElement()
get(int) get(0).
public 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.Object@Deprecated public ListSet<T> transitiveClosure(org.tigris.gef.util.ChildGenerator cg)
transitiveClosure(org.argouml.util.ChildGenerator).
cg - the given childgenerator
public ListSet<T> transitiveClosure(org.argouml.util.ChildGenerator cg)
cg - the given childgenerator
@Deprecated public ListSet<T> reachable(org.tigris.gef.util.ChildGenerator cg)
reachable(org.argouml.util.ChildGenerator).
cg - the given childgenerator
public ListSet<T> reachable(org.argouml.util.ChildGenerator cg)
cg - the given childgenerator
@Deprecated
public ListSet<T> reachable(org.tigris.gef.util.ChildGenerator cg,
int max,
org.tigris.gef.util.Predicate p)
reachable(org.argouml.util.ChildGenerator, int,
org.argouml.util.Predicate).
cg - the given childgeneratormax - the maximum depthp - the predicate the objects have to fulfill
public ListSet<T> reachable(org.argouml.util.ChildGenerator cg,
int max,
org.argouml.util.Predicate predicate)
cg - the given childgeneratormax - the maximum depthpredicate - the predicate the objects have to fulfill
@Deprecated
public ListSet<T> transitiveClosure(org.tigris.gef.util.ChildGenerator cg,
int max,
org.tigris.gef.util.Predicate p)
transitiveClosure(org.argouml.util.ChildGenerator, int,
org.argouml.util.Predicate).
cg - the given childgeneratormax - the maximum depthp - the predicate the objects have to fulfill
public ListSet<T> transitiveClosure(org.argouml.util.ChildGenerator cg,
int max,
org.argouml.util.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[] 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 Cookbook |