Class TreeView.Builder<V,​E,​T extends TreeView<V,​E>,​B extends TreeView.Builder<V,​E,​T,​B>>

  • Enclosing class:
    TreeView<V,​E>

    public static class TreeView.Builder<V,​E,​T extends TreeView<V,​E>,​B extends TreeView.Builder<V,​E,​T,​B>>
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • self

        protected B self()
      • rootPredicate

        public B rootPredicate​(Predicate<V> rootPredicate)
      • rootComparator

        public B rootComparator​(Comparator<V> rootComparator)
      • vertexPredicate

        public B vertexPredicate​(Predicate<V> vertexPredicate)
        Parameters:
        vertexPredicate - Predicate to apply to vertices
        Returns:
        this Builder
      • edgePredicate

        public B edgePredicate​(Predicate<E> edgePredicate)
        Parameters:
        edgePredicate - Predicate to apply to edges
        Returns:
        this Builder
      • vertexComparator

        public B vertexComparator​(Comparator<V> vertexComparator)
        Parameters:
        vertexComparator - Comparator to sort vertices
        Returns:
        this Builder
      • edgeComparator

        public B edgeComparator​(Comparator<E> edgeComparator)
        Parameters:
        edgeComparator - Comparator to sort edges
        Returns:
        this Builder
      • build

        public T build()