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.

Linear Supertypes
AbstractSet[AnyRef], Set[AnyRef], AbstractCollection[AnyRef], Collection[AnyRef], Iterable[AnyRef], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharArraySet
  2. AbstractSet
  3. Set
  4. AbstractCollection
  5. Collection
  6. Iterable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CharArraySet(startSize: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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.

  5. def add(text: String): Boolean

    Add this String into the set

  6. def add(text: CharSequence): Boolean

    Add this CharSequence into the set

  7. def add(o: Any): Boolean
    Definition Classes
    CharArraySet → Set → AbstractCollection → Collection
  8. def addAll(arg0: Collection[_ <: AnyRef]): Boolean
    Definition Classes
    AbstractCollection → Collection
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. 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
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def contains(o: Any): Boolean
    Definition Classes
    CharArraySet → Set → AbstractCollection → Collection
  13. def contains(cs: CharSequence): Boolean

    true if the CharSequence is in the set

    true if the CharSequence is in the set

  14. def contains(text: Array[Char], off: Int, len: Int): Boolean

    true if the len chars of text starting at off are in the set

    true if the len chars of text starting at off are in the set

  15. def containsAll(arg0: Collection[_]): Boolean
    Definition Classes
    AbstractCollection → Collection
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AbstractSet → Set → Collection → AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def forEach(arg0: Consumer[_ >: AnyRef]): Unit
    Definition Classes
    Iterable
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int
    Definition Classes
    AbstractSet → Set → Collection → AnyRef → Any
  22. def isEmpty(): Boolean
    Definition Classes
    AbstractCollection → Collection
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def iterator(): Iterator[AnyRef]

    Returns an Iterator for char[] instances in this set.

    Returns an Iterator for char[] instances in this set.

    Definition Classes
    CharArraySet → Set → AbstractCollection → Collection → Iterable
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  28. def parallelStream(): Stream[AnyRef]
    Definition Classes
    Collection
  29. def remove(text: String): Boolean
  30. def remove(arg0: Any): Boolean
    Definition Classes
    AbstractCollection → Collection
  31. def removeAll(words: List[String]): Boolean
  32. def removeAll(arg0: Collection[_]): Boolean
    Definition Classes
    AbstractSet → Set → AbstractCollection → Collection
  33. def removeIf(arg0: Predicate[_ >: AnyRef]): Boolean
    Definition Classes
    Collection
  34. def retainAll(arg0: Collection[_]): Boolean
    Definition Classes
    AbstractCollection → Collection
  35. def size(): Int
    Definition Classes
    CharArraySet → Set → AbstractCollection → Collection
  36. def spliterator(): Spliterator[AnyRef]
    Definition Classes
    Set → Collection → Iterable
  37. def stream(): Stream[AnyRef]
    Definition Classes
    Collection
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toArray[T](arg0: Array[T]): Array[T]
    Definition Classes
    AbstractCollection → Collection
  40. def toArray(): Array[AnyRef]
    Definition Classes
    AbstractCollection → Collection
  41. def toString(): String
    Definition Classes
    CharArraySet → AbstractCollection → AnyRef → Any
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AbstractSet[AnyRef]

Inherited from Set[AnyRef]

Inherited from AbstractCollection[AnyRef]

Inherited from Collection[AnyRef]

Inherited from Iterable[AnyRef]

Inherited from AnyRef

Inherited from Any

Ungrouped