ResourcePathNode implements ResourcePath, Serializable { public static ResourcePathNode<Void> create(String path) { return create(path, VOID_FUNCTION); } protected  ResourcePathNode(String name, Function<ResourcePathNode<D>, D> dataFunction); protected  ResourcePathNode(ResourcePathNode<D> parent, String name, D data); protected  ResourcePathNode(ResourcePathNode<D> parent, String name, Function<ResourcePathNode<D>, D> dataFunction); @Override ResourcePathNode<D> getParent(); @Override ResourcePathNode<D> getRoot(); @Override String getName(); D getData(); @Override boolean isAbsolute(); boolean isParentDirectory(); @Override boolean isRoot(); boolean matches(ResourcePathNode<Pattern> patternPath); void collectFromRoot(Collection<ResourcePathNode<D>> nodes); List<ResourcePathNode<D>> asList(); ResourcePathNode<D> navigateTo(ResourcePathNode<D> path); @Override String toString(); String toString(char separator); static ResourcePathNode<Void> create(String path); static ResourcePathNode<Pattern> createPattern(String path); @Deprecated static ResourcePathNode<D> create(String path, net.sf.mmm.util.lang.api.function.Function<ResourcePathNode<D>, D> dataFunction); @SuppressWarnings({ "unchecked", "rawtypes" }) static ResourcePathNode<D> create(String path, Function<ResourcePathNode<D>, D> dataFunction); static String normalizeHome(String path); static final ResourcePathNode<Void> ROOT_ABSOLUTE; static final ResourcePathNode<Void> ROOT_RELATIVE; static final ResourcePathNode<Void> ROOT_HOME; }
@Test public void testCreateNull() { assertThat(ResourcePathNode.create(null)).isNull(); }
@Test public void testCreateEmpty() { assertThat(ResourcePathNode.create("")).isSameAs(ResourcePathNode.ROOT_RELATIVE); }