com.usefullittlethings.saw.util
Class SortedStringCollection

java.lang.Object
  |
  +--com.usefullittlethings.saw.util.SortedStringCollection

public class SortedStringCollection
extends java.lang.Object

Collection class for String values that stores the values in sorted order.

See Also:
String.compareTo(java.lang.String)

Constructor Summary
SortedStringCollection()
           
SortedStringCollection(boolean caseSensitive)
           
SortedStringCollection(boolean caseSensitive, boolean ascending)
           
 
Method Summary
 void add(java.lang.String s)
           
 boolean contains(java.lang.String s)
           
 java.lang.String get(int index)
           
 void remove(java.lang.String s)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedStringCollection

public SortedStringCollection()

SortedStringCollection

public SortedStringCollection(boolean caseSensitive)

SortedStringCollection

public SortedStringCollection(boolean caseSensitive,
                              boolean ascending)
Method Detail

add

public void add(java.lang.String s)

remove

public void remove(java.lang.String s)

size

public int size()

get

public java.lang.String get(int index)

contains

public boolean contains(java.lang.String s)