info.rolandkrueger.roklib.util
Class TernarySearchTreeStringSet.TSTStringSetSubSet

java.lang.Object
  extended by info.rolandkrueger.roklib.util.TernarySearchTreeStringSet.TSTStringSetSubSet
All Implemented Interfaces:
Iterable<CharSequence>, Collection<CharSequence>, Set<CharSequence>, SortedSet<CharSequence>
Enclosing class:
TernarySearchTreeStringSet

private static class TernarySearchTreeStringSet.TSTStringSetSubSet
extends Object
implements SortedSet<CharSequence>


Field Summary
private  Comparator<? super CharSequence> mComparator
           
private  CharSequence mFromElement
           
private  TernarySearchTreeStringSet mParent
           
private  CharSequence mToElement
           
 
Constructor Summary
TernarySearchTreeStringSet.TSTStringSetSubSet(TernarySearchTreeStringSet parent, CharSequence fromElement, CharSequence toElement)
           
 
Method Summary
 boolean add(CharSequence e)
           
 boolean addAll(Collection<? extends CharSequence> c)
           
 void clear()
           
 Comparator<? super CharSequence> comparator()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 CharSequence first()
           
 SortedSet<CharSequence> headSet(CharSequence toElement)
           
 boolean isEmpty()
           
 Iterator<CharSequence> iterator()
           
 CharSequence last()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 SortedSet<CharSequence> subSet(CharSequence fromElement, CharSequence toElement)
           
 SortedSet<CharSequence> tailSet(CharSequence fromElement)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Field Detail

mFromElement

private CharSequence mFromElement

mToElement

private CharSequence mToElement

mParent

private TernarySearchTreeStringSet mParent

mComparator

private Comparator<? super CharSequence> mComparator
Constructor Detail

TernarySearchTreeStringSet.TSTStringSetSubSet

TernarySearchTreeStringSet.TSTStringSetSubSet(TernarySearchTreeStringSet parent,
                                              CharSequence fromElement,
                                              CharSequence toElement)
Method Detail

comparator

public Comparator<? super CharSequence> comparator()
Specified by:
comparator in interface SortedSet<CharSequence>

first

public CharSequence first()
Specified by:
first in interface SortedSet<CharSequence>

headSet

public SortedSet<CharSequence> headSet(CharSequence toElement)
Specified by:
headSet in interface SortedSet<CharSequence>

last

public CharSequence last()
Specified by:
last in interface SortedSet<CharSequence>

subSet

public SortedSet<CharSequence> subSet(CharSequence fromElement,
                                      CharSequence toElement)
Specified by:
subSet in interface SortedSet<CharSequence>

tailSet

public SortedSet<CharSequence> tailSet(CharSequence fromElement)
Specified by:
tailSet in interface SortedSet<CharSequence>

add

public boolean add(CharSequence e)
Specified by:
add in interface Collection<CharSequence>
Specified by:
add in interface Set<CharSequence>

addAll

public boolean addAll(Collection<? extends CharSequence> c)
Specified by:
addAll in interface Collection<CharSequence>
Specified by:
addAll in interface Set<CharSequence>

clear

public void clear()
Specified by:
clear in interface Collection<CharSequence>
Specified by:
clear in interface Set<CharSequence>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<CharSequence>
Specified by:
contains in interface Set<CharSequence>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<CharSequence>
Specified by:
containsAll in interface Set<CharSequence>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<CharSequence>
Specified by:
isEmpty in interface Set<CharSequence>

iterator

public Iterator<CharSequence> iterator()
Specified by:
iterator in interface Iterable<CharSequence>
Specified by:
iterator in interface Collection<CharSequence>
Specified by:
iterator in interface Set<CharSequence>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<CharSequence>
Specified by:
remove in interface Set<CharSequence>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<CharSequence>
Specified by:
removeAll in interface Set<CharSequence>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<CharSequence>
Specified by:
retainAll in interface Set<CharSequence>

size

public int size()
Specified by:
size in interface Collection<CharSequence>
Specified by:
size in interface Set<CharSequence>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<CharSequence>
Specified by:
toArray in interface Set<CharSequence>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<CharSequence>
Specified by:
toArray in interface Set<CharSequence>


Copyright © 2007-2011. All Rights Reserved.