|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.chars.AbstractCharCollection
it.unimi.dsi.fastutil.chars.CharCollections.EmptyCollection
it.unimi.dsi.fastutil.chars.CharLists.EmptyList
public static class CharLists.EmptyList
An immutable class representing an empty type-specific list.
This class may be useful to implement your own in case you subclass a type-specific list.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
boolean |
add(char k)
|
boolean |
add(Character k)
Delegates to the corresponding type-specific method. |
void |
add(int index,
char k)
|
void |
add(int index,
Character k)
|
boolean |
addAll(CharCollection c)
Adds all elements of the given type-specific collection to this collection. |
boolean |
addAll(CharList c)
|
boolean |
addAll(Collection<? extends Character> c)
Adds all elements of the given collection to this collection. |
boolean |
addAll(int i,
CharCollection c)
|
boolean |
addAll(int i,
CharList c)
|
boolean |
addAll(int i,
Collection<? extends Character> c)
|
void |
addElements(int index,
char[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
char[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list. |
CharIterator |
charIterator()
Deprecated. |
CharListIterator |
charListIterator()
Deprecated. |
CharListIterator |
charListIterator(int i)
Deprecated. |
CharList |
charSubList(int from,
int to)
Deprecated. |
Object |
clone()
|
int |
compareTo(List<? extends Character> o)
|
Character |
get(int i)
|
char |
getChar(int i)
|
void |
getElements(int from,
char[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
int |
indexOf(char k)
|
int |
indexOf(Object k)
|
int |
lastIndexOf(char k)
|
int |
lastIndexOf(Object k)
|
CharListIterator |
listIterator()
Returns a type-specific list iterator on the list. |
CharListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
Character |
remove(int k)
|
boolean |
removeAll(Collection<?> c)
Remove from this collection all elements in the given collection. |
char |
removeChar(int i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
char |
set(int index,
char k)
|
Character |
set(int index,
Character k)
|
void |
size(int s)
Sets the size of this list. |
CharList |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index from, inclusive, to the index to, exclusive. |
| Methods inherited from class it.unimi.dsi.fastutil.chars.CharCollections.EmptyCollection |
|---|
clear, contains, containsAll, equals, hashCode, iterator, rem, removeAll, retainAll, size, toArray, toCharArray, toCharArray |
| Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection |
|---|
contains, containsAll, isEmpty, rem, remove, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.chars.CharList |
|---|
iterator |
| Methods inherited from interface java.util.List |
|---|
clear, contains, containsAll, equals, hashCode, isEmpty, remove, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection |
|---|
contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toCharArray, toCharArray |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public void add(int index,
char k)
add in interface CharListList.add(int,Object)public boolean add(char k)
add in interface CharCollectionadd in class CharCollections.EmptyCollectionCollection.add(Object)public char removeChar(int i)
removeChar in interface CharListList.remove(int)
public char set(int index,
char k)
set in interface CharListList.set(int,Object)public int indexOf(char k)
indexOf in interface CharListList.indexOf(Object)public int lastIndexOf(char k)
lastIndexOf in interface CharListList.lastIndexOf(Object)public boolean addAll(Collection<? extends Character> c)
AbstractCharCollection
addAll in interface Collection<Character>addAll in interface List<Character>addAll in class AbstractCharCollectionc - a collection.
true if this collection changed as a result of the call.
public boolean addAll(int i,
Collection<? extends Character> c)
addAll in interface List<Character>public boolean removeAll(Collection<?> c)
AbstractCharCollection
removeAll in interface Collection<Character>removeAll in interface List<Character>removeAll in class AbstractCharCollectionc - a collection.
true if this collection changed as a result of the call.public Character get(int i)
get in interface List<Character>public boolean addAll(CharCollection c)
AbstractCharCollection
addAll in interface CharCollectionaddAll in class CharCollections.EmptyCollectionc - a type-specific collection.
true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean addAll(CharList c)
addAll in interface CharListList.add(int,Object)
public boolean addAll(int i,
CharCollection c)
addAll in interface CharListList.add(int,Object)
public boolean addAll(int i,
CharList c)
addAll in interface CharListList.add(int,Object)
public void add(int index,
Character k)
add in interface List<Character>public boolean add(Character k)
AbstractCharCollection
add in interface Collection<Character>add in interface List<Character>add in class AbstractCharCollection
public Character set(int index,
Character k)
set in interface List<Character>public char getChar(int i)
getChar in interface CharListList.get(int)public Character remove(int k)
remove in interface List<Character>public int indexOf(Object k)
indexOf in interface List<Character>public int lastIndexOf(Object k)
lastIndexOf in interface List<Character>@Deprecated public CharIterator charIterator()
AbstractCharCollection
charIterator in interface CharCollectioncharIterator in class AbstractCharCollectionCharCollection.iterator()public CharListIterator listIterator()
CharList
listIterator in interface CharListlistIterator in interface List<Character>CharList.listIterator()public CharListIterator listIterator(int i)
CharList
listIterator in interface CharListlistIterator in interface List<Character>CharList.listIterator(int)@Deprecated public CharListIterator charListIterator()
CharList
charListIterator in interface CharListCharList.listIterator()@Deprecated public CharListIterator charListIterator(int i)
CharList
charListIterator in interface CharListCharList.listIterator(int)
public CharList subList(int from,
int to)
CharListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface CharListsubList in interface List<Character>List.subList(int,int)
@Deprecated
public CharList charSubList(int from,
int to)
CharListfrom, inclusive, to the index to, exclusive.
charSubList in interface CharListList.subList(int,int)
public void getElements(int from,
char[] a,
int offset,
int length)
CharList
getElements in interface CharListfrom - the start index (inclusive).a - the destination array.offset - the offset into the destination array where to store the first element copied.length - the number of elements to be copied.
public void removeElements(int from,
int to)
CharList
removeElements in interface CharListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
char[] a,
int offset,
int length)
CharList
addElements in interface CharListindex - the index at which to add elements.a - the array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.
public void addElements(int index,
char[] a)
CharList
addElements in interface CharListindex - the index at which to add elements.a - the array containing the elements.public void size(int s)
CharListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface CharLists - the new size.public int compareTo(List<? extends Character> o)
compareTo in interface Comparable<List<? extends Character>>public Object clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||