|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractSet<E> java.util.HashSet<E> java.util.LinkedHashSet<String> com.esri.gpt.framework.collection.StringSet
public class StringSet
Maintains an ordered set of strings.
Null values are treated as zero-length strings (empty).
Empty values are only added if flagged as allowed.
Values will be trimmed if flagged.
Constructor Summary | |
---|---|
StringSet()
Default constructor. |
|
StringSet(boolean allowEmptyValues,
boolean isCaseSensitive,
boolean trimValues)
Constructs with an empty values allowed flag, a case sensitivity flag and a trimming preference. |
Method Summary | |
---|---|
boolean |
add(String value)
Adds a value to the collection. |
void |
addDelimited(String demilitedTags)
Adds a delimited set of tags to the collection. |
void |
clear()
Clears the collection. |
boolean |
contains(Object value)
Determine if the collection contains a value. |
boolean |
containsString(String value)
Determine if the collection contains a value. |
protected boolean |
getAllowEmptyValues()
Gets the status indicating whether empty strings are allowed. |
protected boolean |
getIsCaseSensitive()
Gets the case sensitive status for a unique list. |
protected boolean |
getTrimValues()
Gets the flag indicating whether values will be trimmed. |
boolean |
remove(Object value)
Removes a value from the collection. |
boolean |
remove(String value)
Removes a value from the collection. |
boolean |
retainAll(Collection<?> c)
Retains only those values that are included in the supplied collection. |
Methods inherited from class java.util.HashSet |
---|
clone, isEmpty, iterator, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, equals, hashCode, isEmpty, iterator, removeAll, size, toArray, toArray |
Constructor Detail |
---|
public StringSet()
public StringSet(boolean allowEmptyValues, boolean isCaseSensitive, boolean trimValues)
allowEmptyValues
- true if empty values are allowedisCaseSensitive
- true if the set is case sensitivetrimValues
- true if values will be trimmedMethod Detail |
---|
protected boolean getAllowEmptyValues()
protected boolean getIsCaseSensitive()
protected boolean getTrimValues()
public boolean add(String value)
add
in interface Collection<String>
add
in interface Set<String>
add
in class HashSet<String>
value
- the value to add
public void addDelimited(String demilitedTags)
demilitedTags
- the tag to addpublic void clear()
clear
in interface Collection<String>
clear
in interface Set<String>
clear
in class HashSet<String>
public boolean contains(Object value)
contains
in interface Collection<String>
contains
in interface Set<String>
contains
in class HashSet<String>
value
- the value to check
public boolean containsString(String value)
value
- the value to check
public boolean remove(Object value)
remove
in interface Collection<String>
remove
in interface Set<String>
remove
in class HashSet<String>
value
- the value to remove
true
if the value was removedpublic boolean remove(String value)
value
- the value to remove
true
if the value was removedpublic boolean retainAll(Collection<?> c)
retainAll
in interface Collection<String>
retainAll
in interface Set<String>
retainAll
in class AbstractCollection<String>
c
- the collection defining the values to retain
true
if the collection was modified
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |