com.vaadin.flow.templatemodel.
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 useLitTemplate
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 Summary
All Methods Modifier and Type Method Description 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.
static <T> PathLookup<T>
empty()
Deprecated.
Creates an empty path lookup.
Optional<T>
getItem(String fullPath)
Deprecated.
Gets the item for the provided full path.
-
-
-
Method Detail
-
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 compositionpathPrefix
- the prefix to include in the key of all new itemsReturns:
a new path lookup composition
-
empty
public static <T> PathLookup<T> empty()
Deprecated.Creates an empty path lookup.
Type Parameters:
T
- the item typeReturns:
and empty path lookup
-
-