Package org.projectnessie.model
Class Namespace
- java.lang.Object
-
- org.projectnessie.model.Namespace
-
- Direct Known Subclasses:
ImmutableNamespace
@Immutable(prehash=true) public abstract class Namespace extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableNamespaceEMPTY
-
Constructor Summary
Constructors Constructor Description Namespace()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()abstract @NotNull Stringname()static Namespaceof(String... elements)Builds aNamespaceinstance out of the first N-1 elements.static Namespaceof(List<String> elements)Builds aNamespaceinstance out of the first N-1 elements.static Namespaceparse(String identifier)Builds aNamespaceinstance out of the first N-1 elements when those are split by the . (dot) character.
-
-
-
Field Detail
-
EMPTY
public static final ImmutableNamespace EMPTY
-
-
Method Detail
-
name
@NotNull public abstract @NotNull String name()
-
isEmpty
public boolean isEmpty()
-
of
public static Namespace of(String... elements)
Builds aNamespaceinstance out of the first N-1 elements.
-
of
public static Namespace of(List<String> elements)
Builds aNamespaceinstance out of the first N-1 elements.
-
-