public class StringSet extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected String |
descriptiveString |
protected HashMap |
hashtable |
Constructor and Description |
---|
StringSet()
Create the empty stringset
|
StringSet(Map table)
Create the stringset from a Map of strings
|
StringSet(String x)
Create a stringset from a single string.
|
StringSet(String[] array)
Create the stringset from a string array
|
StringSet(StringSetBuffer buffer)
Create the stringset from a stringsetbuffer
|
StringSet(StringSet oldOne,
String prefix)
Get a new stringset based on an old one plus a prefix.
|
StringSet(Vector stringVector)
Create the stringset from a vector of strings
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key)
Check if a key is in the set
|
boolean |
contains(StringSet x) |
boolean |
equals(Object o)
Perform equals operation
|
String[] |
getArray(String prefix)
Get array of strings
|
String |
getDescriptiveString()
Convert to a descriptive string.
|
Iterator |
getKeys()
Enumerate through the keys
|
int |
hashCode()
Calculate the hashcode
|
int |
size()
Get number of keys
|
public static final String _rcsid
protected HashMap hashtable
protected String descriptiveString
public StringSet()
public StringSet(StringSetBuffer buffer)
public StringSet(String x)
public StringSet(String[] array)
public StringSet(Vector stringVector)
public StringSet(Map table)
public boolean contains(String key)
public boolean contains(StringSet x)
public Iterator getKeys()
public int size()
public String getDescriptiveString()