Package net.orbyfied.j8.registry
Class Identifier
java.lang.Object
net.orbyfied.j8.registry.Identifier
- All Implemented Interfaces:
Cloneable
Namespaced unique identifier.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetPath()inthashCode()static IdentifierParses a string followingnamespace:pathinto an identifier.static Identifierparse(String in, Identifier out) Parses a string followingnamespace:pathinto the provided identifier.toString()
-
Field Details
-
namespace
-
path
-
-
Constructor Details
-
Identifier
-
-
Method Details
-
parse
Parses a string followingnamespace:pathinto the provided identifier.- Parameters:
in- The input string.out- The output identifier.- Returns:
- The identifier.
- Throws:
NullPointerException- If the input string is null.IllegalArgumentException- If the input string is malformed.
-
of
Parses a string followingnamespace:pathinto an identifier.- Parameters:
in- The input string.- Returns:
- The identifier.
- Throws:
NullPointerException- If the input string is null.IllegalArgumentException- If the input string is malformed.
-
getNamespace
-
getPath
-
toString
-
equals
-
hashCode
public int hashCode() -
clone
-