Class PathLookup<T>

java.lang.Object
com.vaadin.flow.templatemodel.PathLookup<T>
Type Parameters:
T - the item type

@Deprecated public class PathLookup<T> extends Object
Deprecated.
This functionality is internal and bound to template model which is not supported for lit template. Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
A map for items that are looked up by hierarchical keys made up of period separated strings.

For internal use only. May be renamed or removed in a future release.

Since:
1.0
Author:
Vaadin Ltd
  • Method Details

    • compose

      public PathLookup<T> compose(Map<String,T> newItems, String pathPrefix)
      Deprecated.
      Composes a new path lookup that contains all items of this path lookup and all provided items supplemented with the provided path prefix.
      Parameters:
      newItems - new items to include in the composition
      pathPrefix - the prefix to include in the key of all new items
      Returns:
      a new path lookup composition
    • empty

      public static <T> PathLookup<T> empty()
      Deprecated.
      Creates an empty path lookup.
      Type Parameters:
      T - the item type
      Returns:
      and empty path lookup
    • getItem

      public Optional<T> getItem(String fullPath)
      Deprecated.
      Gets the item for the provided full path.
      Parameters:
      fullPath - the fully qualified path for which to find an item
      Returns:
      the item corresponding to the path, or an empty optional if there is no item