E
- type of the list's entries.public class XdevList<E> extends Vector<E> implements Copyable<XdevList<E>>
List
,
Vector
,
Serialized FormcapacityIncrement, elementCount, elementData
modCount
Constructor and Description |
---|
XdevList()
Constructs an empty
XdevList so that its internal data array has
size 10 and its standard capacity increment is zero. |
XdevList(Collection<? extends E> c)
Constructs a
XdevList containing the elements of the specified
collection, in the order they are returned by the collection's iterator. |
XdevList(int initialCapacity)
Constructs an empty
XdevList with the specified initial capacity
and with its capacity increment equal to zero. |
XdevList(int initialCapacity,
int capacityIncrement)
Constructs an empty
XdevList with the specified initial capacity
and capacity increment. |
XdevList(V... values)
Constructs a
XdevList containing the elements of the specified
values, in the order they are given to this method. |
Modifier and Type | Method and Description |
---|---|
XdevList<E> |
clone()
Returns a field-for-field copy of this instance.
|
XdevList<E> |
copy()
Creates a (defensive) copy of this
XdevList . |
int |
deleteDoubleValues()
Deletes all duplicate values from this
XdevList . |
String |
getSeparator()
Return the separator of this
XdevList . |
void |
insert(int index,
E value)
Inserts the specified element
value at the specified
position in this XdevList . |
Object |
removeObject(Object object)
|
void |
setSeparator(String separator)
Sets the separator of this
XdevList . |
String |
toString() |
String |
toString(String separator)
|
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, stream
public XdevList()
XdevList
so that its internal data array has
size 10
and its standard capacity increment is zero.public XdevList(V... values)
XdevList
containing the elements of the specified
values, in the order they are given to this method.V
- type of the values to be addedvalues
- the values to be placed into this XdevList
public XdevList(int initialCapacity) throws IllegalArgumentException
XdevList
with the specified initial capacity
and with its capacity increment equal to zero.initialCapacity
- the initial capacity of the XdevList
IllegalArgumentException
- if the specified initial capacity is negativepublic XdevList(Collection<? extends E> c) throws NullPointerException
XdevList
containing the elements of the specified
collection, in the order they are returned by the collection's iterator.c
- the collection whose elements are to be placed into this
XdevList
NullPointerException
- if the specified collection is nullpublic XdevList(int initialCapacity, int capacityIncrement) throws IllegalArgumentException
XdevList
with the specified initial capacity
and capacity increment.initialCapacity
- the initial capacity of the XdevList
capacityIncrement
- the amount by which the capacity is increased when the
XdevList
overflowsIllegalArgumentException
- if the specified initial capacity is negativepublic int deleteDoubleValues()
XdevList
. A
value
is delete if there is a other value
in
this XdevList
where
value1.equals(value2) == true
public void insert(int index, E value) throws ArrayIndexOutOfBoundsException
value
at the specified
position in this XdevList
. Shifts the element currently at that
position (if any) and any subsequent elements to the right (adds one to
their indices).index
- index at which the specified element is to be insertedvalue
- element to be insertedArrayIndexOutOfBoundsException
- if the index is out of range (
index < 0 || index > size()
)public String getSeparator()
XdevList
.XdevList
.public void setSeparator(String separator)
XdevList
.separator
- the separator of this XdevList
.public XdevList<E> copy()
XdevList
.XdevList
.Copyright © 2003–2021 XDEV Software. All rights reserved.