public interface PropertyArrayString
PropertyAtomString
.Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.String value)
Creates a
PropertyAtomString with the given String
and inserts it into the array at the specified position. |
int |
add(java.lang.String value)
Creates a
PropertyAtomString with the given String
and appends it to the array. |
PropertyAtomString |
removePropertyAtom(java.lang.String value)
Removes the first
PropertyAtomString with the given value
that is found in this array. |
void |
set(int index,
java.lang.String value)
Sets the
PropertyAtomString at the given index to the given String . |
int add(java.lang.String value)
PropertyAtomString
with the given String
and appends it to the array.value
- the String
to add.void add(int index, java.lang.String value)
PropertyAtomString
with the given String
and inserts it into the array at the specified position.
This method shifts the PropertyAtomString
currently at
that position (if any) and any subsequent PropertyAtomString
to the right
(i.e. adds one to their indices).index
- the position at which to insert.value
- the String
to add.java.lang.IndexOutOfBoundsException
- - if the index is less than zero or more than the size of the array.PropertyAtomString removePropertyAtom(java.lang.String value)
PropertyAtomString
with the given value
that is found in this array.
This method shifts all the subsequent array elements to the left
(i.e. substracts one to their indices).
It returns null if no matching value is found.value
- the String
to search for in the array.PropertyAtomString
, or null if none matched.void set(int index, java.lang.String value)
PropertyAtomString
at the given index to the given String
.
If index == length
, this method will call add(index, value)
instead.index
- the index at which the value is to be set.value
- the String
to set at the index.java.lang.IndexOutOfBoundsException
- - if the index is less than zero or more than the current size of the array.