Package fr.smolder.mirage.core.config
Record Class MirageConfig
java.lang.Object
java.lang.Record
fr.smolder.mirage.core.config.MirageConfig
public record MirageConfig(MirageConfig.Settings settings, Map<String,MirageConfig.ImageEntry> images, Map<String,MirageConfig.MotdEntry> motds)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionMirageConfig(MirageConfig.Settings settings, Map<String, MirageConfig.ImageEntry> images, Map<String, MirageConfig.MotdEntry> motds) Creates an instance of aMirageConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MirageConfigdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.images()Returns the value of theimagesrecord component.motds()Returns the value of themotdsrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MirageConfig
public MirageConfig(MirageConfig.Settings settings, Map<String, MirageConfig.ImageEntry> images, Map<String, MirageConfig.MotdEntry> motds) Creates an instance of aMirageConfigrecord class.- Parameters:
settings- the value for thesettingsrecord componentimages- the value for theimagesrecord componentmotds- the value for themotdsrecord component
-
-
Method Details
-
defaults
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
images
Returns the value of theimagesrecord component.- Returns:
- the value of the
imagesrecord component
-
motds
Returns the value of themotdsrecord component.- Returns:
- the value of the
motdsrecord component
-