public class CharObjBigList extends IList<java.lang.Character>
Note that this implementation is not synchronized.
BigList,
CharBigList,
Serialized Form| Constructor and Description |
|---|
CharObjBigList() |
CharObjBigList(java.util.Collection<? extends java.lang.Character> elems) |
CharObjBigList(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(java.util.Collection<? extends java.lang.Character> coll)
Adds all of the elements in the specified collection into this list.
|
boolean |
addAll(IList<? extends java.lang.Character> list2)
Adds all of the elements in the specified list into this list.
|
boolean |
addAll(int index,
java.util.Collection<? extends java.lang.Character> coll)
Inserts all of the elements in the specified collection into this
list, starting at the specified position.
|
boolean |
addAll(int index,
IList<? extends java.lang.Character> list2)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
boolean |
addArray(java.lang.Character... elems)
Adds all specified elements into this list.
|
boolean |
addArray(int index,
java.lang.Character... elems)
Inserts the specified elements into this list,
starting at the specified position.
|
<K> int |
binarySearch(int index,
int len,
K key,
java.util.Comparator<? super K> comparator)
Searches the specified range for an object using the binary
search algorithm.
|
int |
capacity()
Returns capacity of this BigList.
|
boolean |
contains(java.lang.Object elem) |
boolean |
containsAll(java.util.Collection<?> coll) |
boolean |
containsAny(java.util.Collection<?> coll)
Returns true if any of the elements of the specified collection is contained in the list.
|
CharObjBigList |
copy()
Returns a shallow copy of this list instance.
|
static CharObjBigList |
create() |
static CharObjBigList |
create(java.lang.Character... elems) |
static CharObjBigList |
create(java.util.Collection<? extends java.lang.Character> elems) |
IList<java.lang.Character> |
doCreate(int capacity)
Create list with specified capacity.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Character |
get(int index) |
BigList<java.lang.Character> |
getAll(int index,
int len)
Returns specified range of elements from list.
|
java.lang.Character[] |
getArray(int index,
int len)
Returns specified range of elements from list as array.
|
java.lang.Character |
getDefaultElem() |
int |
hashCode() |
int |
indexOf(java.lang.Object elem) |
void |
init() |
void |
init(java.lang.Character... elems) |
void |
init(java.util.Collection<? extends java.lang.Character> elems) |
boolean |
isEmpty() |
int |
lastIndexOf(java.lang.Object elem) |
void |
move(int srcIndex,
int dstIndex,
int len)
Move specified elements.
|
boolean |
remove(java.lang.Object elem) |
boolean |
removeAll(java.util.Collection<?> coll) |
boolean |
removeAll(IList<?> coll) |
boolean |
removeFirstOccurrence(java.lang.Object elem) |
boolean |
removeLastOccurrence(java.lang.Object elem) |
boolean |
retainAll(java.util.Collection<?> coll) |
boolean |
retainAll(IList<?> coll) |
void |
setAll(int index,
java.util.Collection<? extends java.lang.Character> coll)
Sets the specified elements.
|
void |
setAll(int index,
IList<? extends java.lang.Character> list2)
Sets the specified elements.
|
void |
setArray(int index,
java.lang.Character... elems)
Sets the specified elements.
|
int |
size() |
void |
sort(int index,
int len,
java.util.Comparator comparator)
Sort specified elements in the list using the specified comparator.
|
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(int index,
int len)
Returns an array containing the specified elements in this list.
|
<T> T[] |
toArray(T[] array) |
java.lang.String |
toString() |
void |
trimToSize()
An application can use this operation to minimize the storage of an instance.
|
CharObjBigList |
unmodifiableList()
Returns an unmodifiable view of this list.
|
add, add, addFirst, addIfAbsent, addLast, addMult, addMult, binarySearch, clear, clone, copy, descendingIterator, drag, element, ensureCapacity, extract, extractWhere, fill, filter, getAll, getCount, getDistinct, getFirst, getLast, getWhere, indexOf, initAll, initAll, initArray, initMult, iterator, lastIndexOf, listIterator, listIterator, mappedList, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, put, putAll, putAll, putArray, putMult, remove, remove, remove, removeAll, removeFirst, removeLast, removeWhere, replaceAll, replaceAll, replaceArray, replaceMult, resize, retainWhere, reverse, reverse, rotate, rotate, set, setMult, sort, swap, transferCopy, transferMove, transferRemove, transferSwappublic CharObjBigList()
public CharObjBigList(int capacity)
public CharObjBigList(java.util.Collection<? extends java.lang.Character> elems)
public static CharObjBigList create()
public static CharObjBigList create(java.lang.Character... elems)
public static CharObjBigList create(java.util.Collection<? extends java.lang.Character> elems)
public void init()
public void init(java.lang.Character... elems)
public void init(java.util.Collection<? extends java.lang.Character> elems)
public CharObjBigList copy()
IListcopy in class IList<java.lang.Character>IList.clone()public java.lang.Character getDefaultElem()
public IList<java.lang.Character> doCreate(int capacity)
IListcapacity - initial capacity (use -1 for default capacity)public int size()
public int capacity()
public java.lang.Character get(int index)
public void move(int srcIndex,
int dstIndex,
int len)
IListpublic void trimToSize()
IListtrimToSize in class IList<java.lang.Character>public boolean equals(java.lang.Object obj)
public int hashCode()
public boolean isEmpty()
public int indexOf(java.lang.Object elem)
public int lastIndexOf(java.lang.Object elem)
lastIndexOf in interface java.util.List<java.lang.Character>lastIndexOf in class IList<java.lang.Character>public boolean remove(java.lang.Object elem)
public boolean contains(java.lang.Object elem)
public boolean containsAny(java.util.Collection<?> coll)
IListcontainsAny in class IList<java.lang.Character>coll - collection with elements to be containedpublic boolean containsAll(java.util.Collection<?> coll)
containsAll in interface java.util.Collection<java.lang.Character>containsAll in interface java.util.List<java.lang.Character>containsAll in class IList<java.lang.Character>public boolean removeAll(java.util.Collection<?> coll)
public boolean removeAll(IList<?> coll)
removeAll in class IList<java.lang.Character>IList.removeAll(Collection)public boolean retainAll(java.util.Collection<?> coll)
public boolean retainAll(IList<?> coll)
retainAll in class IList<java.lang.Character>IList.retainAll(Collection)public java.lang.Object[] toArray()
public java.lang.Object[] toArray(int index,
int len)
IListpublic <T> T[] toArray(T[] array)
public boolean addAll(java.util.Collection<? extends java.lang.Character> coll)
IListaddAll in interface java.util.Collection<java.lang.Character>addAll in interface java.util.List<java.lang.Character>addAll in class IList<java.lang.Character>coll - collection containing elements to be added to this listpublic boolean addAll(int index,
java.util.Collection<? extends java.lang.Character> coll)
IListaddAll in interface java.util.List<java.lang.Character>addAll in class IList<java.lang.Character>index - index at which to insert the first element from the
specified collectioncoll - collection containing elements to be inserted into this listpublic boolean addArray(java.lang.Character... elems)
IListpublic boolean addArray(int index,
java.lang.Character... elems)
IListpublic boolean addAll(IList<? extends java.lang.Character> list2)
IListpublic boolean addAll(int index,
IList<? extends java.lang.Character> list2)
IListpublic boolean removeFirstOccurrence(java.lang.Object elem)
removeFirstOccurrence in interface java.util.Deque<java.lang.Character>removeFirstOccurrence in class IList<java.lang.Character>public boolean removeLastOccurrence(java.lang.Object elem)
removeLastOccurrence in interface java.util.Deque<java.lang.Character>removeLastOccurrence in class IList<java.lang.Character>public BigList<java.lang.Character> getAll(int index, int len)
IListpublic java.lang.Character[] getArray(int index,
int len)
IListpublic void setAll(int index,
IList<? extends java.lang.Character> list2)
IListpublic void setAll(int index,
java.util.Collection<? extends java.lang.Character> coll)
IListpublic void setArray(int index,
java.lang.Character... elems)
IListpublic void sort(int index,
int len,
java.util.Comparator comparator)
IListpublic <K> int binarySearch(int index,
int len,
K key,
java.util.Comparator<? super K> comparator)
IListbinarySearch in class IList<java.lang.Character>index - index of first element to searchlen - number of elements to searchkey - the value to be searched forcomparator - the comparator by which the list is ordered.
A null value indicates that the elements'
natural ordering should be used.Arrays.binarySearch(long[], long)public CharObjBigList unmodifiableList()
IListunmodifiableList in class IList<java.lang.Character>