com.planet_ink.coffee_mud.core.collections
Class STreeSet<K>

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.collections.STreeSet<K>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.NavigableSet<K>, java.util.Set<K>, java.util.SortedSet<K>

public class STreeSet<K>
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.NavigableSet<K>, java.util.Set<K>, java.util.SortedSet<K>

See Also:
Serialized Form

Constructor Summary
STreeSet()
           
STreeSet(java.util.Comparator<K> comp)
           
STreeSet(java.util.Enumeration<K> E)
           
STreeSet(java.util.Iterator<K> E)
           
STreeSet(K... E)
           
STreeSet(java.util.List<K> E)
           
STreeSet(java.util.Set<K> E)
           
 
Method Summary
 boolean add(K e)
           
 boolean addAll(java.util.Collection<? extends K> c)
           
 void addAll(java.util.Enumeration<K> E)
           
 void addAll(java.util.Iterator<K> E)
           
 void addAll(K[] E)
           
 K ceiling(K e)
           
 void clear()
           
 java.util.Comparator<? super K> comparator()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> arg0)
           
 STreeSet<K> copyOf()
           
 java.util.Iterator<K> descendingIterator()
           
 java.util.NavigableSet<K> descendingSet()
           
 boolean equals(java.lang.Object arg0)
           
 K first()
           
 K floor(K e)
           
 int hashCode()
           
 java.util.SortedSet<K> headSet(K toElement)
           
 java.util.NavigableSet<K> headSet(K toElement, boolean inclusive)
           
 K higher(K e)
           
 boolean isEmpty()
           
 java.util.Iterator<K> iterator()
           
 K last()
           
 K lower(K e)
           
 K pollFirst()
           
 K pollLast()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> arg0)
           
 void removeAll(java.util.Enumeration<K> E)
           
 void removeAll(java.util.Iterator<K> E)
           
 void removeAll(java.util.List<K> E)
           
 boolean retainAll(java.util.Collection<?> arg0)
           
 int size()
           
 java.util.NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)
           
 java.util.SortedSet<K> subSet(K fromElement, K toElement)
           
 java.util.SortedSet<K> tailSet(K fromElement)
           
 java.util.NavigableSet<K> tailSet(K fromElement, boolean inclusive)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] arg0)
           
 java.lang.String toString()
           
 java.util.TreeSet<K> toTreeSet()
           
 java.util.Vector<K> toVector()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

STreeSet

public STreeSet()

STreeSet

public STreeSet(java.util.Comparator<K> comp)

STreeSet

public STreeSet(java.util.List<K> E)

STreeSet

public STreeSet(K... E)

STreeSet

public STreeSet(java.util.Enumeration<K> E)

STreeSet

public STreeSet(java.util.Iterator<K> E)

STreeSet

public STreeSet(java.util.Set<K> E)
Method Detail

addAll

public void addAll(java.util.Enumeration<K> E)

addAll

public void addAll(K[] E)

addAll

public void addAll(java.util.Iterator<K> E)

removeAll

public void removeAll(java.util.Enumeration<K> E)

removeAll

public void removeAll(java.util.Iterator<K> E)

removeAll

public void removeAll(java.util.List<K> E)

toTreeSet

public java.util.TreeSet<K> toTreeSet()

toVector

public java.util.Vector<K> toVector()

add

public boolean add(K e)
Specified by:
add in interface java.util.Collection<K>
Specified by:
add in interface java.util.Set<K>

addAll

public boolean addAll(java.util.Collection<? extends K> c)
Specified by:
addAll in interface java.util.Collection<K>
Specified by:
addAll in interface java.util.Set<K>

ceiling

public K ceiling(K e)
Specified by:
ceiling in interface java.util.NavigableSet<K>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<K>
Specified by:
clear in interface java.util.Set<K>

copyOf

public STreeSet<K> copyOf()

comparator

public java.util.Comparator<? super K> comparator()
Specified by:
comparator in interface java.util.SortedSet<K>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<K>
Specified by:
contains in interface java.util.Set<K>

descendingIterator

public java.util.Iterator<K> descendingIterator()
Specified by:
descendingIterator in interface java.util.NavigableSet<K>

descendingSet

public java.util.NavigableSet<K> descendingSet()
Specified by:
descendingSet in interface java.util.NavigableSet<K>

first

public K first()
Specified by:
first in interface java.util.SortedSet<K>

floor

public K floor(K e)
Specified by:
floor in interface java.util.NavigableSet<K>

headSet

public java.util.NavigableSet<K> headSet(K toElement,
                                         boolean inclusive)
Specified by:
headSet in interface java.util.NavigableSet<K>

headSet

public java.util.SortedSet<K> headSet(K toElement)
Specified by:
headSet in interface java.util.NavigableSet<K>
Specified by:
headSet in interface java.util.SortedSet<K>

higher

public K higher(K e)
Specified by:
higher in interface java.util.NavigableSet<K>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<K>
Specified by:
isEmpty in interface java.util.Set<K>

iterator

public java.util.Iterator<K> iterator()
Specified by:
iterator in interface java.lang.Iterable<K>
Specified by:
iterator in interface java.util.Collection<K>
Specified by:
iterator in interface java.util.NavigableSet<K>
Specified by:
iterator in interface java.util.Set<K>

last

public K last()
Specified by:
last in interface java.util.SortedSet<K>

lower

public K lower(K e)
Specified by:
lower in interface java.util.NavigableSet<K>

pollFirst

public K pollFirst()
Specified by:
pollFirst in interface java.util.NavigableSet<K>

pollLast

public K pollLast()
Specified by:
pollLast in interface java.util.NavigableSet<K>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<K>
Specified by:
remove in interface java.util.Set<K>

size

public int size()
Specified by:
size in interface java.util.Collection<K>
Specified by:
size in interface java.util.Set<K>

subSet

public java.util.NavigableSet<K> subSet(K fromElement,
                                        boolean fromInclusive,
                                        K toElement,
                                        boolean toInclusive)
Specified by:
subSet in interface java.util.NavigableSet<K>

subSet

public java.util.SortedSet<K> subSet(K fromElement,
                                     K toElement)
Specified by:
subSet in interface java.util.NavigableSet<K>
Specified by:
subSet in interface java.util.SortedSet<K>

tailSet

public java.util.NavigableSet<K> tailSet(K fromElement,
                                         boolean inclusive)
Specified by:
tailSet in interface java.util.NavigableSet<K>

tailSet

public java.util.SortedSet<K> tailSet(K fromElement)
Specified by:
tailSet in interface java.util.NavigableSet<K>
Specified by:
tailSet in interface java.util.SortedSet<K>

equals

public boolean equals(java.lang.Object arg0)
Specified by:
equals in interface java.util.Collection<K>
Specified by:
equals in interface java.util.Set<K>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<K>
Specified by:
hashCode in interface java.util.Set<K>
Overrides:
hashCode in class java.lang.Object

removeAll

public boolean removeAll(java.util.Collection<?> arg0)
Specified by:
removeAll in interface java.util.Collection<K>
Specified by:
removeAll in interface java.util.Set<K>

containsAll

public boolean containsAll(java.util.Collection<?> arg0)
Specified by:
containsAll in interface java.util.Collection<K>
Specified by:
containsAll in interface java.util.Set<K>

retainAll

public boolean retainAll(java.util.Collection<?> arg0)
Specified by:
retainAll in interface java.util.Collection<K>
Specified by:
retainAll in interface java.util.Set<K>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<K>
Specified by:
toArray in interface java.util.Set<K>

toArray

public <T> T[] toArray(T[] arg0)
Specified by:
toArray in interface java.util.Collection<K>
Specified by:
toArray in interface java.util.Set<K>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object