public class CharArraySet extends AbstractSet
| Modifier and Type | Class and Description |
|---|---|
class |
CharArraySet.CharArraySetIterator
The Iterator
|
| Constructor and Description |
|---|
CharArraySet(Collection c,
boolean ignoreCase)
Create set from a Collection of char[] or String
|
CharArraySet(int startSize,
boolean ignoreCase)
Create set with enough capacity to hold startSize
terms
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char[] text)
Add this char[] directly to the set.
|
boolean |
add(CharSequence text)
Add this CharSequence into the set
|
boolean |
add(Object o) |
boolean |
add(String text)
Add this String into the set
|
boolean |
contains(char[] text,
int off,
int len)
true if the
len chars of text starting at off
are in the set |
boolean |
contains(CharSequence cs)
true if the
CharSequence is in the set |
boolean |
contains(Object o) |
boolean |
isEmpty() |
Iterator |
iterator() |
int |
size() |
static CharArraySet |
unmodifiableSet(CharArraySet set)
Returns an unmodifiable
CharArraySet. |
equals, hashCode, removeAlladdAll, clear, containsAll, remove, retainAll, toArray, toArray, toStringpublic CharArraySet(int startSize,
boolean ignoreCase)
public CharArraySet(Collection c, boolean ignoreCase)
public boolean contains(char[] text,
int off,
int len)
len chars of text starting at off
are in the setpublic boolean contains(CharSequence cs)
CharSequence is in the setpublic boolean add(CharSequence text)
public boolean add(String text)
public boolean add(char[] text)
public int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectionpublic boolean add(Object o)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic static CharArraySet unmodifiableSet(CharArraySet set)
CharArraySet. This allows to provide
unmodifiable views of internal sets for "read-only" use.set - a set for which the unmodifiable set is returned.CharArraySet.NullPointerException - if the given set is null.public Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.