Class Tree.TreeOps<A>

  • Enclosing interface:
    Tree<A>

    public static class Tree.TreeOps<A>
    extends scala.AnyVal
    • Constructor Detail

      • TreeOps

        public TreeOps​(Tree<A> t)
    • Method Detail

      • fold

        public <B> B fold​(scala.Function0<B> default_,
                          scala.Function1<Tree.Node<A>,​B> f)
      • map

        public <B> Tree<B> map​(scala.Function1<A,​B> f)
      • foreach

        public <U> void foreach​(scala.Function1<A,​U> f)
      • filter

        public Tree<A> filter​(scala.Function1<A,​java.lang.Object> f)
      • filterChildren

        public Tree<A> filterChildren​(scala.Function1<A,​java.lang.Object> f)
      • flatMap

        public <B> Tree<B> flatMap​(scala.Function1<A,​Tree<B>> f)
      • toOption

        public scala.Option<Tree.Node<A>> toOption()
      • toList

        public scala.collection.immutable.List<A> toList()
      • topDown

        public scala.collection.immutable.List<A> topDown()
      • bottomUp

        public scala.collection.immutable.List<A> bottomUp()
      • unsafeMap

        public <B> Tree<B> unsafeMap​(scala.Function1<Tree.Node<A>,​B> f)
      • unsafeFlatMap

        public <B> Tree<B> unsafeFlatMap​(scala.Function1<Tree.Node<A>,​Tree<B>> f)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Overrides:
        equals in class java.lang.Object