Class TreeUtils

java.lang.Object
ru.bitel.common.TreeUtils

public class TreeUtils
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    TreeUtils()  
  • Method Summary

    Modifier and Type Method Description
    static <N extends Node<N> & Idable>
    N
    find​(N root, int id)  
    static <N extends Node<N> & Idable>
    N
    tree​(java.util.List<N> list, int id)  
    static <N extends Node<N> & Idable>
    N
    tree​(java.util.List<N> list, N root)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TreeUtils

      public TreeUtils()
  • Method Details

    • find

      public static <N extends Node<N> & Idable> N find​(N root, int id)
    • tree

      public static <N extends Node<N> & Idable> N tree​(java.util.List<N> list, N root) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • tree

      public static <N extends Node<N> & Idable> N tree​(java.util.List<N> list, int id)