Package org.midheaven.keys
Class Key<C extends Concept>
java.lang.Object
org.midheaven.keys.Key<C>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPerforms compose.abstract StringPerforms conceptName.ensureConcept(Class<C> concept) Performs ensureConcept.booleanPerforms equals.inthashCode()Checks whether hash Code.abstract longPerforms longValue.Creates an instance from the provided value.Creates an instance from the provided value.Creates an instance from the provided value.Parses the provided value.abstract StringPerforms stringValue.toString()Returns to String.Performs tryParse.abstract UUIDPerforms uuidValue.abstract Objectvalue()Performs value.
-
Constructor Details
-
Key
protected Key()
-
-
Method Details
-
of
Creates an instance from the provided value.- Parameters:
concept- the concept valuevalue- the value value- Returns:
- the result of of
-
of
Creates an instance from the provided value.- Parameters:
concept- the concept valuevalue- the value value- Returns:
- the result of of
-
of
Creates an instance from the provided value.- Parameters:
concept- the concept valuevalue- the value value- Returns:
- the result of of
-
compose
Performs compose.- Parameters:
conceptName- the conceptName valuevalue- the value value- Returns:
- the result of compose
-
parse
Parses the provided value.- Parameters:
textualRepresentation- the textualRepresentation value- Returns:
- the result of parse
-
tryParse
Performs tryParse.- Parameters:
textualRepresentation- the textualRepresentation value- Returns:
- the result of tryParse
-
ensureConcept
Performs ensureConcept.- Parameters:
concept- the concept value- Returns:
- the result of ensureConcept
-
conceptName
Performs conceptName.- Returns:
- the result of conceptName
-
stringValue
Performs stringValue.- Returns:
- the result of stringValue
-
longValue
public abstract long longValue()Performs longValue.- Returns:
- the result of longValue
-
uuidValue
Performs uuidValue.- Returns:
- the result of uuidValue
-
value
Performs value.- Returns:
- the result of value
-
hashCode
public int hashCode()Checks whether hash Code. -
equals
Performs equals. -
toString
Returns to String.
-