Record Class InputFacade.ConfigurationWrapper
java.lang.Object
java.lang.Record
org.graylog2.contentpacks.facades.InputFacade.ConfigurationWrapper
- All Implemented Interfaces:
WithInputConfiguration<InputFacade.ConfigurationWrapper>
- Enclosing class:
- InputFacade
public static record InputFacade.ConfigurationWrapper(String type, Map<String,Object> configuration)
extends Record
implements WithInputConfiguration<InputFacade.ConfigurationWrapper>
-
Constructor Summary
ConstructorDescriptionConfigurationWrapper
(String type, Map<String, Object> configuration) Creates an instance of aConfigurationWrapper
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfiguration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.toMap()
final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.withConfiguration
(Map<String, Object> configuration) Returns and updated value using the given configuration map.
-
Constructor Details
-
ConfigurationWrapper
Creates an instance of aConfigurationWrapper
record class.- Parameters:
type
- the value for thetype
record componentconfiguration
- the value for theconfiguration
record component
-
-
Method Details
-
withConfiguration
Description copied from interface:WithInputConfiguration
Returns and updated value using the given configuration map.- Specified by:
withConfiguration
in interfaceWithInputConfiguration<InputFacade.ConfigurationWrapper>
- Parameters:
configuration
- configuration values- Returns:
- updated value
-
toMap
-
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 thetype
record component.- Specified by:
type
in interfaceWithInputConfiguration<InputFacade.ConfigurationWrapper>
- Returns:
- the value of the
type
record component
-
configuration
Returns the value of theconfiguration
record component.- Specified by:
configuration
in interfaceWithInputConfiguration<InputFacade.ConfigurationWrapper>
- Returns:
- the value of the
configuration
record component
-