public class LifoSet<E>
extends java.util.AbstractSet<E>
Constructor and Description |
---|
LifoSet() |
Modifier and Type | Method and Description |
---|---|
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.
|
<T> T[] |
toArray(T[] a)
Returns an array of the elements in the set.
|
public int size()
public boolean isEmpty()
public boolean add(E o)
public void clear()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public int hashCode()