|
||||||||||
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.AbstractCharSet
it.unimi.dsi.fastutil.chars.CharSets.Singleton
An immutable class representing a type-specific singleton set.
This class may be useful to implement your own in case you subclass a type-specific set.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
boolean |
add(char k)
|
boolean |
addAll(CharCollection c)
Adds all elements of the given type-specific collection to this collection. |
boolean |
addAll(CharList l)
|
boolean |
addAll(Collection c)
Adds all elements of the given collection to this collection. |
boolean |
addAll(List l)
|
CharIterator |
charIterator()
Returns a type-specific iterator on the collection. |
Object |
clone()
|
boolean |
contains(char k)
|
boolean |
removeAll(CharCollection c)
Remove from this collection all elements in the given type-specific collection. |
boolean |
removeAll(Collection c)
Remove from this collection all elements in the given collection. |
boolean |
retainAll(CharCollection c)
Retains in this collection only elements from the given type-specific collection. |
boolean |
retainAll(Collection c)
Retains in this collection only elements from the given collection. |
int |
size()
|
char[] |
toCharArray()
Returns a primitive type array containing the items of this collection. |
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharSet |
equals, hashCode, iterator, rem, remove, remove |
Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection |
add, clear, contains, containsAll, containsAll, isEmpty, iterator, rem, toArray, toArray, toArray, toCharArray, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
add, clear, contains, containsAll, isEmpty, iterator, toArray, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection |
containsAll, toArray, toCharArray |
Field Detail |
public static final long serialVersionUID
Method Detail |
public boolean add(char k)
add
in interface CharCollection
add
in class AbstractCharCollection
public boolean contains(char k)
contains
in interface CharCollection
Collection.contains(Object)
public boolean addAll(List l)
public boolean addAll(Collection c)
AbstractCharCollection
addAll
in interface Set
addAll
in class AbstractCharCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractCharCollection
removeAll
in interface Set
removeAll
in class AbstractCharCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractCharCollection
retainAll
in interface Set
retainAll
in class AbstractCharCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean addAll(CharList l)
public boolean addAll(CharCollection c)
AbstractCharCollection
addAll
in interface CharCollection
addAll
in class AbstractCharCollection
c
- a type-specific collection.
true
if this collection changed as a result of the call.public boolean removeAll(CharCollection c)
AbstractCharCollection
removeAll
in interface CharCollection
removeAll
in class AbstractCharCollection
c
- a type-specific collection.
true
if this collection changed as a result of the call.public boolean retainAll(CharCollection c)
AbstractCharCollection
retainAll
in interface CharCollection
retainAll
in class AbstractCharCollection
c
- a type-specific collection.
true
if this collection changed as a result of the call.public char[] toCharArray()
CharCollection
toCharArray
in interface CharCollection
toCharArray
in class AbstractCharCollection
public CharIterator charIterator()
CharCollection
The iterator returned by the Collection.iterator()
method and by this
method are identical; however, using this method you can save a type casting.
charIterator
in interface CharCollection
Collection.iterator()
public int size()
size
in interface Set
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |