|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.filtering.impl.ValueList
public class ValueList
Represent value list of strings, integers, enums or patterns. NOTE: integers and enums converted to strings. This implementation is thread safe.
Constructor Summary | |
---|---|
ValueList()
|
|
ValueList(ValueList values)
|
|
ValueList(ValueList values,
boolean readOnly)
|
Method Summary | |
---|---|
void |
clear()
Removes all values from list (if it isn't read-only list). |
java.lang.Object |
clone()
|
boolean |
containsAny(ValueList list)
Checks if this value list contains any element from specified value list. |
int |
getCapacity()
|
boolean |
put(GEnum value)
Puts new enum value if it haven't contained yet. |
boolean |
put(java.lang.Integer value)
Puts new integer value if it haven't contained yet. |
boolean |
put(java.lang.Object value)
Puts new value if it haven't contained yet. |
boolean |
put(java.util.regex.Pattern value)
Puts new pattern value if it haven't contained yet. |
boolean |
put(java.lang.String value)
Puts string value if it haven't contained yet. |
boolean |
put(ValueList list)
Puts non exists values from specified value list. |
boolean |
remove(GEnum value)
Removes value if it exists. |
boolean |
remove(java.lang.Integer value)
Removes value if it exists. |
boolean |
remove(java.lang.Object value)
Removes value if it exists. |
boolean |
remove(java.util.regex.Pattern value)
Removes value if it exists. |
boolean |
remove(java.lang.String value)
Removes value if it exists. |
boolean |
remove(ValueList list)
Removes values if it exists. |
boolean |
set(ValueList list)
|
void |
setCapacity(int capacity)
|
int |
size()
Gets count of values. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueList()
public ValueList(ValueList values)
public ValueList(ValueList values, boolean readOnly)
Method Detail |
---|
public int size()
public boolean containsAny(ValueList list) throws java.lang.NullPointerException
list
- list of constant values and patterns.
java.lang.NullPointerException
- if argument list is null.public void clear()
public boolean put(java.lang.String value) throws java.lang.NullPointerException, java.lang.UnsupportedOperationException
value
- new value.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean put(java.lang.Integer value) throws java.lang.NullPointerException, java.lang.UnsupportedOperationException
value
- new value.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean put(GEnum value) throws java.lang.NullPointerException
value
- new value.
NOTE: enum value will be converted to string.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean put(java.util.regex.Pattern value) throws java.lang.NullPointerException
value
- new value.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean put(java.lang.Object value) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
value
- new value.
java.lang.IllegalArgumentException
- if value type isn't supported.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean put(ValueList list) throws java.lang.NullPointerException, java.lang.UnsupportedOperationException
list
- source of new values.
java.lang.NullPointerException
- if list argument is null
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean remove(java.lang.String value) throws java.lang.NullPointerException
value
- to remove.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean remove(java.lang.Integer value) throws java.lang.NullPointerException
value
- to remove.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean remove(GEnum value) throws java.lang.NullPointerException
value
- to remove.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean remove(java.util.regex.Pattern value) throws java.lang.NullPointerException
value
- to remove.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean remove(java.lang.Object value) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
value
- to remove.
java.lang.NullPointerException
- if value argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.
java.lang.IllegalArgumentException
public boolean remove(ValueList list) throws java.lang.NullPointerException
list
- values which should be removed from this value list.
java.lang.NullPointerException
- list argument is null.
java.lang.UnsupportedOperationException
- if this value list is readonly.public boolean set(ValueList list)
public java.lang.Object clone()
clone
in class java.lang.Object
public int getCapacity()
public void setCapacity(int capacity)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |