Interface TreeProvider


public interface TreeProvider
Provider of Tree implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<? extends Tree>
    getTree(Realm realm, String id)
    Returns tree with a given id if it is present in the provided realm.
    Set<? extends Tree>
    getTrees(Realm realm)
    Returns all trees in the provided realm.
  • Method Details

    • getTree

      Optional<? extends Tree> getTree(Realm realm, String id)
      Returns tree with a given id if it is present in the provided realm.
      Parameters:
      realm - the realm to look up the tree
      id - tree id
      Returns:
      optional containing the tree if it exists, otherwise an empty optional
    • getTrees

      Set<? extends Tree> getTrees(Realm realm)
      Returns all trees in the provided realm.
      Parameters:
      realm - the realm to look up the trees
      Returns:
      set of trees