|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.interfaces.StringSet
public class StringSet
Immutable helper class, representing an unordered set of strings
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.lang.String |
descriptiveString
|
protected java.util.HashMap |
hashtable
|
| Constructor Summary | |
|---|---|
StringSet()
Create the empty stringset |
|
StringSet(java.util.Map table)
Create the stringset from a Map of strings |
|
StringSet(java.lang.String x)
Create a stringset from a single string. |
|
StringSet(java.lang.String[] array)
Create the stringset from a string array |
|
StringSet(StringSetBuffer buffer)
Create the stringset from a stringsetbuffer |
|
StringSet(StringSet oldOne,
java.lang.String prefix)
Get a new stringset based on an old one plus a prefix. |
|
StringSet(java.util.Vector stringVector)
Create the stringset from a vector of strings |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.String key)
Check if a key is in the set |
boolean |
contains(StringSet x)
|
boolean |
equals(java.lang.Object o)
Perform equals operation |
java.lang.String[] |
getArray(java.lang.String prefix)
Get array of strings |
java.lang.String |
getDescriptiveString()
Convert to a descriptive string. |
java.util.Iterator |
getKeys()
Enumerate through the keys |
int |
hashCode()
Calculate the hashcode |
int |
size()
Get number of keys |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected java.util.HashMap hashtable
protected java.lang.String descriptiveString
| Constructor Detail |
|---|
public StringSet()
public StringSet(StringSetBuffer buffer)
public StringSet(java.lang.String x)
public StringSet(java.lang.String[] array)
public StringSet(java.util.Vector stringVector)
public StringSet(java.util.Map table)
public StringSet(StringSet oldOne,
java.lang.String prefix)
| Method Detail |
|---|
public boolean contains(java.lang.String key)
public boolean contains(StringSet x)
public java.util.Iterator getKeys()
public int size()
public java.lang.String[] getArray(java.lang.String prefix)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getDescriptiveString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||