scala.collection.immutable.TreeSet

Tree

class Tree[+B] extends AnyRef

attributes: abstract
definition classes: RedBlack

Inherits

  1. AnyRef
  2. Any

Value Members

  1. def count: Int

  2. def del(k: A): Tree[B]

  3. def delete(k: A): Tree[B]

  4. def elements: Iterator[(A, B)]

  5. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  6. def first: A

  7. def foreach[U](f: (A, B) ⇒ U): Unit

  8. def hashCode(): Int

    Returns a hash code value for the object

  9. def isBlack: Boolean

  10. def isEmpty: Boolean

  11. def iterator: Iterator[(A, B)]

  12. def last: A

  13. def lookup(x: A): Tree[B]

  14. def range(from: Option[A], until: Option[A]): Tree[B]

  15. def smallest: NonEmpty[B]

  16. def toStream: Stream[(A, B)]

  17. def toString(): String

    Returns a string representation of the object

  18. def upd[B1 >: B](k: A, v: B1): Tree[B1]

  19. def update[B1 >: B](k: A, v: B1): Tree[B1]

  20. def visit[T](input: T)(f: (T, A, B) ⇒ (Boolean, T)): (Boolean, T)

Instance constructors

  1. new Tree()