|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.XmlSimpleList
public class XmlSimpleList
The immutable List
returned for XML simple list values.
XmlSimpleList implements an equals() and hashCode() that compare list
contents, so two XmlSimpleLists are the same if they have the same
values in the same order.
Constructor Summary | |
---|---|
XmlSimpleList(List list)
Constructs an immutable XmlSimpleList that wraps (does not copy) the given List . |
Method Summary | |
---|---|
void |
add(int index,
Object element)
Unsupported because this list is immutable. |
boolean |
add(Object o)
Unsupported because this list is immutable. |
boolean |
addAll(Collection coll)
Unsupported because this list is immutable. |
boolean |
addAll(int index,
Collection c)
Unsupported because this list is immutable. |
void |
clear()
Unsupported because this list is immutable. |
boolean |
contains(Object o)
True if the list is contains an object equal to o. |
boolean |
containsAll(Collection coll)
True if the list is contains all the objects in the given collection. |
boolean |
equals(Object o)
Two XmlSimpleLists are equal if all their items are equal. |
Object |
get(int index)
Returns the object at the specified position in this list. |
int |
hashCode()
Combines the hash codes of all the list items. |
int |
indexOf(Object o)
Returns index of the first occurance of an object equal to o. |
boolean |
isEmpty()
True if the list is empty. |
Iterator |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
int |
lastIndexOf(Object o)
Returns index of the last occurance of an object equal to o. |
ListIterator |
listIterator()
Returns a list iterator of the elements in this list in proper sequence. |
ListIterator |
listIterator(int index)
Returns a list iterator of the elements in this list in proper sequence, starting at the specified position in this list. |
Object |
remove(int index)
Unsupported because this list is immutable. |
boolean |
remove(Object o)
Unsupported because this list is immutable. |
boolean |
removeAll(Collection coll)
Unsupported because this list is immutable. |
boolean |
retainAll(Collection coll)
Unsupported because this list is immutable. |
Object |
set(int index,
Object element)
Unsupported because this list is immutable. |
int |
size()
Returns the number of elements in this list. |
List |
subList(int from,
int to)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
Object[] |
toArray()
Copies the collection to an array. |
Object[] |
toArray(Object[] a)
Copies the collection to an array of a specified type. |
String |
toString()
Returns a space-separated list of the string representations of all the items in the list. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlSimpleList(List list)
List
. All non-mutating methods delegate to
the underlying List instance.
Method Detail |
---|
public int size()
size
in interface Collection
size
in interface List
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
public boolean containsAll(Collection coll)
containsAll
in interface Collection
containsAll
in interface List
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
public boolean add(Object o)
add
in interface Collection
add
in interface List
public boolean addAll(Collection coll)
addAll
in interface Collection
addAll
in interface List
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
public boolean removeAll(Collection coll)
removeAll
in interface Collection
removeAll
in interface List
public boolean retainAll(Collection coll)
retainAll
in interface Collection
retainAll
in interface List
public void clear()
clear
in interface Collection
clear
in interface List
public Object get(int index)
get
in interface List
public Object set(int index, Object element)
set
in interface List
public void add(int index, Object element)
add
in interface List
public Object remove(int index)
remove
in interface List
public int indexOf(Object o)
indexOf
in interface List
public int lastIndexOf(Object o)
lastIndexOf
in interface List
public boolean addAll(int index, Collection c)
addAll
in interface List
public List subList(int from, int to)
subList
in interface List
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in interface Collection
equals
in interface List
equals
in class Object
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |