Record Class AlgorithmIdentity.NamedParameters
java.lang.Object
java.lang.Record
zeroecho.core.spec.AlgorithmIdentity.NamedParameters
- Record Components:
parameterSet- stable namespaced parameter-set identifier
- All Implemented Interfaces:
AlgorithmIdentity.Parameters
- Enclosing class:
AlgorithmIdentity
public static record AlgorithmIdentity.NamedParameters(AlgorithmIdentity.Family parameterSet)
extends Record
implements AlgorithmIdentity.Parameters
Exact named parameter set, such as an elliptic-curve name.
-
Constructor Summary
ConstructorsConstructorDescriptionNamedParameters(AlgorithmIdentity.Family parameterSet) Creates named parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the deterministic parameter representation.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns an independently owned immutable copy.Returns the value of theparameterSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NamedParameters
Creates named parameters.- Throws:
NullPointerException- ifparameterSetisnull
-
-
Method Details
-
canonicalForm
Description copied from interface:AlgorithmIdentity.ParametersReturns the deterministic parameter representation.- Specified by:
canonicalFormin interfaceAlgorithmIdentity.Parameters- Returns:
- non-blank lowercase canonical component
-
immutableCopy
Description copied from interface:AlgorithmIdentity.ParametersReturns an independently owned immutable copy.Trusted extension implementations must not return mutable caller-owned state. Immutable records may return
this.- Specified by:
immutableCopyin interfaceAlgorithmIdentity.Parameters- Returns:
- immutable owned parameters
-
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). -
parameterSet
Returns the value of theparameterSetrecord component.- Returns:
- the value of the
parameterSetrecord component
-