Package org.projectnessie.model
Class Namespace
- java.lang.Object
-
- org.projectnessie.model.Namespace
-
- Direct Known Subclasses:
ImmutableNamespace
@Immutable public abstract class Namespace extends Object
-
-
Constructor Summary
Constructors Constructor Description Namespace()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String[]getElements()booleanisEmpty()abstract @NotNull Stringname()static Namespaceof(String... elements)Builds aNamespaceinstance for the given elements.static Namespaceof(List<String> elements)Builds aNamespaceinstance for the given elements.static Namespaceparse(String identifier)Builds aNamespaceinstance for the given elements split by the . (dot) character.
-
-
-
Field Detail
-
EMPTY
public static final Namespace EMPTY
-
-
Method Detail
-
name
@NotNull public abstract @NotNull String name()
-
isEmpty
@Redacted public boolean isEmpty()
-
getElements
@Redacted public String[] getElements()
-
of
public static Namespace of(String... elements)
Builds aNamespaceinstance for the given elements.
-
of
public static Namespace of(List<String> elements)
Builds aNamespaceinstance for the given elements.
-
-