|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.caucho.util.LifoSet<E>
public class LifoSet<E>
Stack (lifo) ordered set, used by the JCA code so recent connections are used first.
Constructor Summary | |
---|---|
LifoSet()
|
Method Summary | ||
---|---|---|
boolean |
add(E o)
Adds an element. |
|
void |
clear()
Clears the set. |
|
boolean |
contains(java.lang.Object o)
Returns true if the item is in the set. |
|
boolean |
containsAll(java.util.Collection<?> c)
Returns true if the item is in the set. |
|
boolean |
equals(java.lang.Object o)
Test for equality |
|
int |
hashCode()
Returns the hash code. |
|
boolean |
isEmpty()
Returns true if empty. |
|
java.util.Iterator<E> |
iterator()
Returns an iterator to the set. |
|
boolean |
remove(java.lang.Object o)
Removes an element of the set. |
|
boolean |
removeAll(java.util.Collection<?> c)
Removes an element of the set. |
|
boolean |
retainAll(java.util.Collection<?> c)
Removes an element of the set. |
|
int |
size()
Returns the number of elements in the set. |
|
java.lang.Object[] |
toArray()
Returns an array of the elements in the set. |
|
|
toArray(T[] a)
Returns an array of the elements in the set. |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll |
Constructor Detail |
---|
public LifoSet()
Method Detail |
---|
public int size()
size
in interface java.util.Collection<E>
size
in interface java.util.Set<E>
size
in class java.util.AbstractCollection<E>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
isEmpty
in interface java.util.Set<E>
isEmpty
in class java.util.AbstractCollection<E>
public boolean add(E o)
add
in interface java.util.Collection<E>
add
in interface java.util.Set<E>
add
in class java.util.AbstractCollection<E>
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.Set<E>
clear
in class java.util.AbstractCollection<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
contains
in interface java.util.Set<E>
contains
in class java.util.AbstractCollection<E>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<E>
containsAll
in interface java.util.Set<E>
containsAll
in class java.util.AbstractCollection<E>
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
iterator
in interface java.util.Set<E>
iterator
in class java.util.AbstractCollection<E>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
remove
in interface java.util.Set<E>
remove
in class java.util.AbstractCollection<E>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
removeAll
in interface java.util.Set<E>
removeAll
in class java.util.AbstractSet<E>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
retainAll
in interface java.util.Set<E>
retainAll
in class java.util.AbstractCollection<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.Set<E>
toArray
in class java.util.AbstractCollection<E>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.Set<E>
toArray
in class java.util.AbstractCollection<E>
public int hashCode()
hashCode
in interface java.util.Collection<E>
hashCode
in interface java.util.Set<E>
hashCode
in class java.util.AbstractSet<E>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<E>
equals
in interface java.util.Set<E>
equals
in class java.util.AbstractSet<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |