| java.util.AbstractSet org.apache.lucene.analysis.CharArraySet
CharArraySet | public class CharArraySet extends AbstractSet (Code) | | A simple class that stores Strings as char[]'s in a
hash table. Note that this is not a general purpose
class. For example, it cannot remove items from the
set, nor does it resize its hash table to be smaller,
etc. It is designed to be quick to test if a char[]
is in the set without the necessity of converting it
to a String first.
|
Inner Class :public class CharArraySetIterator implements Iterator | |
CharArraySet | public CharArraySet(int startSize, boolean ignoreCase)(Code) | | Create set with enough capacity to hold startSize
terms
|
CharArraySet | public CharArraySet(Collection c, boolean ignoreCase)(Code) | | Create set from a Collection of char[] or String
|
add | public boolean add(String text)(Code) | | Add this String into the set
|
add | public boolean add(char[] text)(Code) | | Add this char[] directly to the set.
If ignoreCase is true for this Set, the text array will be directly modified.
The user should never modify this text array after calling this method.
|
contains | public boolean contains(char[] text, int off, int len)(Code) | | true if the len chars of text starting at off
are in the set
|
contains | public boolean contains(CharSequence cs)(Code) | | true if the CharSequence is in the set
|
isEmpty | public boolean isEmpty()(Code) | | |
|
|