Record Class Selector.Special
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special
- All Implemented Interfaces:
Selector
- Enclosing interface:
Selector
public static record Selector.Special(Model base, Selector.Special.Type type, @Nullable Selector.Transformation transformation)
extends Record
implements Selector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic classstatic final recordstatic final recordstatic classstatic classstatic final recordstatic classstatic final recordstatic classstatic classstatic classstatic classstatic interfaceNested classes/interfaces inherited from interface Selector
Selector.BundleSelectedItem, Selector.Composite, Selector.Condition, Selector.Empty, Selector.Model, Selector.RangeDispatch, Selector.Select, Selector.Special, Selector.Transformation -
Constructor Summary
ConstructorsConstructorDescriptionSpecial(Model base, Selector.Special.Type type) Special(Model base, Selector.Special.Type type, Selector.Transformation transformation) Creates an instance of aSpecialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()toJson()final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Special
-
Special
public Special(Model base, Selector.Special.Type type, @Nullable Selector.Transformation transformation) Creates an instance of aSpecialrecord class.- Parameters:
base- the value for thebaserecord componenttype- the value for thetyperecord componenttransformation- the value for thetransformationrecord component
-
-
Method Details
-
id
-
toJson
-
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). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
transformation
Returns the value of thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-