Record Class ThermooConfig
java.lang.Object
java.lang.Record
com.github.thedeathlycow.thermoo.impl.config.ThermooConfig
-
Constructor Summary
ConstructorsConstructorDescriptionThermooConfig(boolean enableThermooPatchesNag, boolean enablePolymerPatch, URI thermooPatchesPatchListUrl) Creates an instance of aThermooConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThermooConfigcreate()booleanReturns the value of theenablePolymerPatchrecord component.booleanReturns the value of theenableThermooPatchesNagrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thethermooPatchesPatchListUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThermooConfig
public ThermooConfig(boolean enableThermooPatchesNag, boolean enablePolymerPatch, URI thermooPatchesPatchListUrl) Creates an instance of aThermooConfigrecord class.- Parameters:
enableThermooPatchesNag- the value for theenableThermooPatchesNagrecord componentenablePolymerPatch- the value for theenablePolymerPatchrecord componentthermooPatchesPatchListUrl- the value for thethermooPatchesPatchListUrlrecord component
-
-
Method Details
-
create
-
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 '=='. -
enableThermooPatchesNag
public boolean enableThermooPatchesNag()Returns the value of theenableThermooPatchesNagrecord component.- Returns:
- the value of the
enableThermooPatchesNagrecord component
-
enablePolymerPatch
public boolean enablePolymerPatch()Returns the value of theenablePolymerPatchrecord component.- Returns:
- the value of the
enablePolymerPatchrecord component
-
thermooPatchesPatchListUrl
Returns the value of thethermooPatchesPatchListUrlrecord component.- Returns:
- the value of the
thermooPatchesPatchListUrlrecord component
-