public interface CharCollection extends Collection<Character>, CharIterable
Collection; provides some additional methods
that use polymorphism to avoid (un)boxing.
Additionally, this class defines strengthens (again) iterator() and defines
a slightly different semantics for toArray(Object[]).
Collection| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
add(char key) |
boolean |
addAll(CharCollection c) |
CharIterator |
charIterator()
推奨されていません。
As of
fastutil 5, replaced by iterator(). |
boolean |
contains(char key) |
boolean |
containsAll(CharCollection c) |
CharIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
boolean |
rem(char key)
|
boolean |
removeAll(CharCollection c) |
boolean |
retainAll(CharCollection c) |
char[] |
toArray(char[] a)
Returns a primitive type array containing the items of this collection.
|
<T> T[] |
toArray(T[] a)
Returns an containing the items of this collection;
the runtime type of the returned array is that of the specified array.
|
char[] |
toCharArray()
Returns a primitive type array containing the items of this collection.
|
char[] |
toCharArray(char[] a)
Returns a primitive type array containing the items of this collection.
|
CharIterator iterator()
Note that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
iterator インタフェース内 CharIterableiterator インタフェース内 Collection<Character>iterator インタフェース内 Iterable<Character>@Deprecated CharIterator charIterator()
iterator()<T> T[] toArray(T[] a)
Warning: Note that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
toArray インタフェース内 Collection<Character>a - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])boolean contains(char key)
char[] toCharArray()
Collection.toArray()char[] toCharArray(char[] a)
Note that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
a - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])char[] toArray(char[] a)
Note that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
a - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])boolean add(char key)
boolean rem(char key)
boolean addAll(CharCollection c)
boolean containsAll(CharCollection c)
boolean removeAll(CharCollection c)
boolean retainAll(CharCollection c)
Copyright © 2011-2015. All Rights Reserved.