Record Class CustomEffectParameter
java.lang.Object
java.lang.Record
live.crowdcontrol.cc4j.websocket.http.CustomEffectParameter
-
Constructor Summary
ConstructorsConstructorDescriptionCustomEffectParameter(@NotNull String type, @NotNull String name, @Nullable Map<String, CustomEffectParameterOption> options) Creates an instance of aCustomEffectParameterrecord class. -
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.static CustomEffectParameter@NotNull Stringname()Returns the value of thenamerecord component.@Nullable Map<String, CustomEffectParameterOption> options()Returns the value of theoptionsrecord component.static CustomEffectParameteroptions(@NotNull String name, @NotNull Map<String, CustomEffectParameterOption> options) final StringtoString()Returns a string representation of this record class.@NotNull Stringtype()Returns the value of thetyperecord component.
-
Constructor Details
-
CustomEffectParameter
public CustomEffectParameter(@NotNull @NotNull String type, @NotNull @NotNull String name, @Nullable @Nullable Map<String, CustomEffectParameterOption> options) Creates an instance of aCustomEffectParameterrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
options
public static CustomEffectParameter options(@NotNull @NotNull String name, @NotNull @NotNull Map<String, CustomEffectParameterOption> options) -
hexColor
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-