Record Class DefinitionProviderConfig

java.lang.Object
java.lang.Record
io.vertigo.core.node.config.DefinitionProviderConfig

public record DefinitionProviderConfig(Class<? extends DefinitionProvider> definitionProviderClass, Map<String,String> params, List<DefinitionResourceConfig> definitionResourceConfigs) extends Record
Author:
mlaroche
  • Constructor Details

    • DefinitionProviderConfig

      public DefinitionProviderConfig(Class<? extends DefinitionProvider> definitionProviderClass, Map<String,String> params, List<DefinitionResourceConfig> definitionResourceConfigs)
      Creates an instance of a DefinitionProviderConfig record class.
      Parameters:
      definitionProviderClass - the value for the definitionProviderClass record component
      params - the value for the params record component
      definitionResourceConfigs - the value for the definitionResourceConfigs record component
  • Method Details

    • builder

      public static DefinitionProviderConfigBuilder builder(Class<? extends DefinitionProvider> definitionProviderClass)
      Static method factory for DefinitionProviderConfigBuilder
      Parameters:
      definitionProviderClass - the class of the definitionProvider
      Returns:
      ComponentConfigBuilder
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • definitionProviderClass

      public Class<? extends DefinitionProvider> definitionProviderClass()
      Returns the value of the definitionProviderClass record component.
      Returns:
      the value of the definitionProviderClass record component
    • params

      public Map<String,String> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • definitionResourceConfigs

      public List<DefinitionResourceConfig> definitionResourceConfigs()
      Returns the value of the definitionResourceConfigs record component.
      Returns:
      the value of the definitionResourceConfigs record component