Record Class ComponentNamespace
java.lang.Object
java.lang.Record
tech.skworks.tachyon.api.component.ComponentNamespace
- Record Components:
pluginName- The lowercase plugin name.componentName- The lowercase component name.fullNamespace- The pre-computed canonical namespace (e.g. "plugin:component").
-
Constructor Summary
ConstructorsConstructorDescriptionComponentNamespace(String pluginName, String componentName, String fullNamespace) Canonical constructor with validation and pre-computed full namespace. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullNamespacerecord component.final inthashCode()Returns a hash code value for this object.static ComponentNamespaceFactory method with strict regex validation and lowercase normalization.static ComponentNamespaceParses a raw namespace string in the format"plugin:component".Returns the value of thepluginNamerecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComponentNamespace
-
-
Method Details
-
of
Factory method with strict regex validation and lowercase normalization.- Parameters:
pluginName- Name of the plugin (letters only).componentName- Name of the component (letters only).- Returns:
- A memory-optimized ComponentNameSpace instance.
-
parse
Parses a raw namespace string in the format"plugin:component".- Parameters:
raw- The raw formatted namespace string.- Returns:
- A memory-optimized ComponentNameSpace instance.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
componentName
Returns the value of thecomponentNamerecord component.- Returns:
- the value of the
componentNamerecord component
-
fullNamespace
Returns the value of thefullNamespacerecord component.- Returns:
- the value of the
fullNamespacerecord component
-