public final class JsStringArrayList
extends java.lang.Object
implements java.util.List<java.lang.String>
JsArrayStringImpl
Constructor and Description |
---|
JsStringArrayList()
Creates an empty list
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.String element)
Inserts the specified element at the specified position in this list.
Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
boolean |
add(java.lang.String e)
Appends the specified element to the end of this list
|
boolean |
addAll(java.util.Collection<? extends java.lang.String> c)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator
|
boolean |
addAll(int index,
java.util.Collection<? extends java.lang.String> c)
Inserts all of the elements in the specified collection into this list at the specified position.
Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). |
void |
addAll(java.lang.String... values)
Loads an array of elements into the list
|
void |
clear()
Removes all of the elements from this list.
|
boolean |
contains(java.lang.Object o)
Returns true if this list contains the specified element.
|
boolean |
containsAll(java.util.Collection<?> c)
Returns true if this list contains all of the elements of the specified collection.
|
java.lang.String |
get(int index)
Returns the element at the specified position in this list.
|
int |
indexOf(java.lang.Object o)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
|
boolean |
isEmpty()
Returns true if this list contains no elements
|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the elements in this list in proper sequence.
|
int |
lastIndexOf(java.lang.Object o)
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
|
java.util.ListIterator<java.lang.String> |
listIterator()
Returns a list iterator over the elements in this list
|
java.util.ListIterator<java.lang.String> |
listIterator(int index)
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.
The specified index indicates the first element that would be returned by an initial call to next. An initial call to previous would return the element with the specified index minus one. |
java.lang.String |
remove(int index)
Removes the element at the specified position in this list.
Shifts any subsequent elements to the left (subtracts one from their indices). |
boolean |
remove(java.lang.Object o)
Removes the first occurrence of the specified element from this list, if it is present.
|
boolean |
removeAll(java.util.Collection<?> c)
Removes from this list all of its elements that are contained in the specified collection.
|
boolean |
retainAll(java.util.Collection<?> c)
Retains only the elements in this list that are contained in the specified collection.
In other words, removes from this list all of its elements that are not contained in the specified collection. |
java.lang.String |
set(int index,
java.lang.String element)
Replaces the element at the specified position in this list with the specified element.
|
int |
size()
Returns the number of elements in this list.
|
java.util.List<java.lang.String> |
subList(int fromIndex,
int toIndex)
Not implemented
|
java.lang.Object[] |
toArray()
Not implemented
|
<T> T[] |
toArray(T[] a)
Not implemented
|
java.lang.String |
toString() |
public void addAll(java.lang.String... values)
values
- an array of elements to be loadedpublic int size()
size
in interface java.util.Collection<java.lang.String>
size
in interface java.util.List<java.lang.String>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.String>
isEmpty
in interface java.util.List<java.lang.String>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<java.lang.String>
contains
in interface java.util.List<java.lang.String>
public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
iterator
in interface java.util.Collection<java.lang.String>
iterator
in interface java.util.List<java.lang.String>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<java.lang.String>
toArray
in interface java.util.List<java.lang.String>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<java.lang.String>
toArray
in interface java.util.List<java.lang.String>
public boolean add(java.lang.String e)
add
in interface java.util.Collection<java.lang.String>
add
in interface java.util.List<java.lang.String>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<java.lang.String>
remove
in interface java.util.List<java.lang.String>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<java.lang.String>
containsAll
in interface java.util.List<java.lang.String>
public boolean addAll(java.util.Collection<? extends java.lang.String> c)
addAll
in interface java.util.Collection<java.lang.String>
addAll
in interface java.util.List<java.lang.String>
public boolean addAll(int index, java.util.Collection<? extends java.lang.String> c)
addAll
in interface java.util.List<java.lang.String>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<java.lang.String>
removeAll
in interface java.util.List<java.lang.String>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<java.lang.String>
retainAll
in interface java.util.List<java.lang.String>
public void clear()
clear
in interface java.util.Collection<java.lang.String>
clear
in interface java.util.List<java.lang.String>
public java.lang.String get(int index)
get
in interface java.util.List<java.lang.String>
public java.lang.String set(int index, java.lang.String element)
set
in interface java.util.List<java.lang.String>
public void add(int index, java.lang.String element)
add
in interface java.util.List<java.lang.String>
public java.lang.String remove(int index)
remove
in interface java.util.List<java.lang.String>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<java.lang.String>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<java.lang.String>
public java.util.ListIterator<java.lang.String> listIterator()
listIterator
in interface java.util.List<java.lang.String>
public java.util.ListIterator<java.lang.String> listIterator(int index)
listIterator
in interface java.util.List<java.lang.String>
public java.util.List<java.lang.String> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<java.lang.String>
public java.lang.String toString()
toString
in class java.lang.Object