Record Class VerticleConfig
java.lang.Object
java.lang.Record
de.wuespace.telestion.application.VerticleConfig
public record VerticleConfig(String name, String verticle, int magnitude, com.fasterxml.jackson.databind.JsonNode config)
extends Record
The base configuration of verticles.
-
Constructor Summary
ConstructorsConstructorDescriptionVerticleConfig(String name, String verticle, int magnitude, com.fasterxml.jackson.databind.JsonNode config)Creates an instance of aVerticleConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeconfig()Returns the value of theconfigrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.io.vertx.core.json.JsonObjectjson()The whole verticle configuration is stored in a JsonObject.io.vertx.core.json.JsonObjectThe config is a JsonObject which is defined by the verticle.intReturns the value of themagnituderecord component.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.verticle()Returns the value of theverticlerecord component.
-
Constructor Details
-
VerticleConfig
public VerticleConfig(String name, String verticle, int magnitude, com.fasterxml.jackson.databind.JsonNode config)Creates an instance of aVerticleConfigrecord class.- Parameters:
name- the value for thenamerecord componentverticle- the value for theverticlerecord componentmagnitude- the value for themagnituderecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
json
public io.vertx.core.json.JsonObject json()The whole verticle configuration is stored in a JsonObject.- Returns:
- the json representation of this record
-
jsonConfig
public io.vertx.core.json.JsonObject jsonConfig()The config is a JsonObject which is defined by the verticle.- Returns:
- the json representation of the config node
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
verticle
Returns the value of theverticlerecord component.- Returns:
- the value of the
verticlerecord component
-
magnitude
public int magnitude()Returns the value of themagnituderecord component.- Returns:
- the value of the
magnituderecord component
-
config
public com.fasterxml.jackson.databind.JsonNode config()Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-