Package fr.smolder.mirage.core.config
Record Class MirageConfig.Settings
java.lang.Object
java.lang.Record
fr.smolder.mirage.core.config.MirageConfig.Settings
- Enclosing class:
MirageConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabaseTyperecord 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 themineskinApiKeyrecord component.Returns the value of themineskinSkinVisibilityrecord component.intReturns the value of theminimumModernProtocolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Settings
public Settings(String mineskinApiKey, String databaseType, int minimumModernProtocol, String mineskinSkinVisibility) Creates an instance of aSettingsrecord class.- Parameters:
mineskinApiKey- the value for themineskinApiKeyrecord componentdatabaseType- the value for thedatabaseTyperecord componentminimumModernProtocol- the value for theminimumModernProtocolrecord componentmineskinSkinVisibility- the value for themineskinSkinVisibilityrecord component
-
-
Method Details
-
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 '=='. -
mineskinApiKey
Returns the value of themineskinApiKeyrecord component.- Returns:
- the value of the
mineskinApiKeyrecord component
-
databaseType
Returns the value of thedatabaseTyperecord component.- Returns:
- the value of the
databaseTyperecord component
-
minimumModernProtocol
public int minimumModernProtocol()Returns the value of theminimumModernProtocolrecord component.- Returns:
- the value of the
minimumModernProtocolrecord component
-
mineskinSkinVisibility
Returns the value of themineskinSkinVisibilityrecord component.- Returns:
- the value of the
mineskinSkinVisibilityrecord component
-