Modifier and Type | Field and Description |
---|---|
public static final StringListImpl | EMPTY_LIST
An immutable empty list. |
private final String[] | |
private final int | |
private final List |
Access | Constructor and Description |
---|---|
public | |
public | StringListImpl(String[]
the data array array, int the number of elements length)Construct an XSObjectList implementation |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: True if this list contains theGenericString
item .GenericString whose presence in this list is
to be tested.Implements com. Checks if the |
public String | get(int
index of the element to return index)Implements abstract java. Implements java. Returns the element at the specified position in this list. |
public int | getLength()
Implements com. The number of |
public String | item(int
index into the collection. index)Implements com. Returns the |
public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
public Object[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
public Object[] | toArray(Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
private void |
EMPTY_LIST | back to summary |
---|---|
public static final StringListImpl EMPTY_LIST An immutable empty list. |
fArray | back to summary |
---|---|
private final String[] fArray |
fLength | back to summary |
---|---|
private final int fLength |
fVector | back to summary |
---|---|
private final List<String> fVector |
StringListImpl | back to summary |
---|---|
public StringListImpl(List<String> v) |
StringListImpl | back to summary |
---|---|
public StringListImpl(String[] array, int length) Construct an XSObjectList implementation
|
contains | back to summary |
---|---|
public boolean contains(String item) Implements com. Checks if the
|
get | back to summary |
---|---|
public String get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
|
getLength | back to summary |
---|---|
public int getLength() Implements com. The number of |
item | back to summary |
---|---|
public String item(int index) Implements com. Doc from com. Returns the
|
size | back to summary |
---|---|
public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
|
toArray | back to summary |
---|---|
public Object[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
|
toArray | back to summary |
---|---|
public Object[] toArray(Object[] a) Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list. If the list fits in the specified array with room to spare (i.e.,
the array has more elements than the list), the element in the array
immediately following the end of the list is set to Like the Suppose
Note that toArray(new Object[0]) is identical in function to
toArray() .
|
toArray0 | back to summary |
---|---|
private void toArray0(Object[] a) |