class CharArraySet extends AbstractSet[AnyRef]
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.
Please note: This class implements Set
but
does not behave like it should in all cases. The generic type is
Set
, because you can add any object to it,
that has a string representation. The add methods will use
Object#toString
and store the result using a char[]
buffer. The same behavior have the contains()
methods.
The #iterator()
returns an Iterator
.
- Alphabetic
- By Inheritance
- CharArraySet
- AbstractSet
- Set
- AbstractCollection
- Collection
- Iterable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CharArraySet(startSize: Int)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(text: Array[Char]): Boolean
Add this char[] directly to the set.
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.
-
def
add(text: String): Boolean
Add this String into the set
-
def
add(text: CharSequence): Boolean
Add this CharSequence into the set
-
def
add(o: Any): Boolean
- Definition Classes
- CharArraySet → Set → AbstractCollection → Collection
-
def
addAll(arg0: Collection[_ <: AnyRef]): Boolean
- Definition Classes
- AbstractCollection → Collection
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clear(): Unit
Clears all entries in this set.
Clears all entries in this set. This method is supported for reusing, but not
Set#remove
.- Definition Classes
- CharArraySet → Set → AbstractCollection → Collection
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
contains(o: Any): Boolean
- Definition Classes
- CharArraySet → Set → AbstractCollection → Collection
-
def
contains(cs: CharSequence): Boolean
true if the
CharSequence
is in the settrue if the
CharSequence
is in the set -
def
contains(text: Array[Char], off: Int, len: Int): Boolean
true if the
len
chars oftext
starting atoff
are in the settrue if the
len
chars oftext
starting atoff
are in the set -
def
containsAll(arg0: Collection[_]): Boolean
- Definition Classes
- AbstractCollection → Collection
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AbstractSet → Set → Collection → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forEach(arg0: Consumer[_ >: AnyRef]): Unit
- Definition Classes
- Iterable
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AbstractSet → Set → Collection → AnyRef → Any
-
def
isEmpty(): Boolean
- Definition Classes
- AbstractCollection → Collection
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator(): Iterator[AnyRef]
Returns an
Iterator
forchar[]
instances in this set.Returns an
Iterator
forchar[]
instances in this set.- Definition Classes
- CharArraySet → Set → AbstractCollection → Collection → Iterable
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parallelStream(): Stream[AnyRef]
- Definition Classes
- Collection
- def remove(text: String): Boolean
-
def
remove(arg0: Any): Boolean
- Definition Classes
- AbstractCollection → Collection
- def removeAll(words: List[String]): Boolean
-
def
removeAll(arg0: Collection[_]): Boolean
- Definition Classes
- AbstractSet → Set → AbstractCollection → Collection
-
def
removeIf(arg0: Predicate[_ >: AnyRef]): Boolean
- Definition Classes
- Collection
-
def
retainAll(arg0: Collection[_]): Boolean
- Definition Classes
- AbstractCollection → Collection
-
def
size(): Int
- Definition Classes
- CharArraySet → Set → AbstractCollection → Collection
-
def
spliterator(): Spliterator[AnyRef]
- Definition Classes
- Set → Collection → Iterable
-
def
stream(): Stream[AnyRef]
- Definition Classes
- Collection
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toArray[T](arg0: Array[T]): Array[T]
- Definition Classes
- AbstractCollection → Collection
-
def
toArray(): Array[AnyRef]
- Definition Classes
- AbstractCollection → Collection
-
def
toString(): String
- Definition Classes
- CharArraySet → AbstractCollection → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )