Packages

case class Tree[D](d: D, children: List[Tree[D]]) extends Product with Serializable

Polymorphic class for representing finite trees, with unbounded branching.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tree
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Tree(d: D, children: List[Tree[D]])

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val children: List[Tree[D]]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  7. val d: D
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def foreach[U](f: (D) => U): Unit
  10. def foreachPostOrder[U](f: (D) => U): Unit
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def iterator: Iterator[D] { val todo: scala.collection.mutable.Stack[ap.basetypes.Tree[D]] }
  14. def map[E](f: (D) => E): Tree[E]
  15. def mapUpDown(f: (D) => D): Tree[D]
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def prettyPrint(indent: String): Unit
  20. def prettyPrint: Unit
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. def size: Int
  23. def subtrees: Tree[Tree[D]]
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toList: List[D]
  26. def toSeq: List[D]
  27. def toSet: Set[D]
  28. def unzip[D1, D2](implicit asPair: (D) => (D1, D2)): (Tree[D1], Tree[D2])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def zip[E](t: Tree[E]): Tree[(D, E)]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped