Module org.praxislive.core
Package org.praxislive.core.services
Record Class ComponentFactory.Deprecated
java.lang.Object
java.lang.Record
org.praxislive.core.services.ComponentFactory.Deprecated
- Enclosing interface:
ComponentFactory
public static record ComponentFactory.Deprecated(Optional<ComponentType> replacement)
extends Record
Mark a component deprecated (with optional replacement type). An instance
should be added to the metadata lookup associated with the component
type.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated without replacement.Deprecated(Optional<ComponentType> replacement) Creates an instance of aDeprecatedrecord class.Deprecated(ComponentType replacement) Deprecated with replacement type. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereplacementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Deprecated
public Deprecated()Deprecated without replacement. -
Deprecated
Deprecated with replacement type.- Parameters:
replacement- replacement type
-
Deprecated
Creates an instance of aDeprecatedrecord class.- Parameters:
replacement- the value for thereplacementrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
replacement
Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-