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
ConstructorDescriptionVerticleConfig(String name, String verticle, int magnitude, com.fasterxml.jackson.databind.JsonNode config)
Creates an instance of aVerticleConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
config()
Returns the value of theconfig
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.io.vertx.core.json.JsonObject
json()
The whole verticle configuration is stored in a JsonObject.io.vertx.core.json.JsonObject
The config is a JsonObject which is defined by the verticle.int
Returns the value of themagnitude
record component.name()
Returns the value of thename
record component.toString()
Returns a string representation of this record class.verticle()
Returns the value of theverticle
record component.
-
Constructor Details
-
VerticleConfig
public VerticleConfig(String name, String verticle, int magnitude, com.fasterxml.jackson.databind.JsonNode config)Creates an instance of aVerticleConfig
record class.- Parameters:
name
- the value for thename
record componentverticle
- the value for theverticle
record componentmagnitude
- the value for themagnitude
record componentconfig
- the value for theconfig
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
verticle
Returns the value of theverticle
record component.- Returns:
- the value of the
verticle
record component
-
magnitude
public int magnitude()Returns the value of themagnitude
record component.- Returns:
- the value of the
magnitude
record component
-
config
public com.fasterxml.jackson.databind.JsonNode config()Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-