Record Class MetricsConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.core.metric.MetricsConfig
-
Constructor Summary
ConstructorsConstructorDescriptionMetricsConfig(String metricsHost, int metricsPort) Creates an instance of aMetricsConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static MetricsConfigfromFile(org.bukkit.configuration.file.FileConfiguration configuration) final inthashCode()Returns a hash code value for this object.Returns the value of themetricsHostrecord component.intReturns the value of themetricsPortrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetricsConfig
Creates an instance of aMetricsConfigrecord class.- Parameters:
metricsHost- the value for themetricsHostrecord componentmetricsPort- the value for themetricsPortrecord component
-
-
Method Details
-
fromFile
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
metricsHost
Returns the value of themetricsHostrecord component.- Returns:
- the value of the
metricsHostrecord component
-
metricsPort
public int metricsPort()Returns the value of themetricsPortrecord component.- Returns:
- the value of the
metricsPortrecord component
-