Record Class MindustryDisplay
java.lang.Object
java.lang.Record
com.xpdustry.nohorny.common.MindustryDisplay
- All Implemented Interfaces:
MindustryImage
public record MindustryDisplay(int resolution, Map<Integer, MindustryDisplay.Processor> processors, @Nullable MindustryDisplay.Tiled tiled)
extends Record
implements MindustryImage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionMindustryDisplay(int resolution, Map<Integer, MindustryDisplay.Processor> processors) MindustryDisplay(int resolution, Map<Integer, MindustryDisplay.Processor> processors, @Nullable MindustryDisplay.Tiled tiled) Creates an instance of aMindustryDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprocessorsrecord component.intReturns the value of theresolutionrecord component.@Nullable MindustryDisplay.Tiledtiled()Returns the value of thetiledrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MindustryDisplay
-
MindustryDisplay
public MindustryDisplay(int resolution, Map<Integer, MindustryDisplay.Processor> processors, @Nullable MindustryDisplay.Tiled tiled) Creates an instance of aMindustryDisplayrecord class.- Parameters:
resolution- the value for theresolutionrecord componentprocessors- the value for theprocessorsrecord componenttiled- the value for thetiledrecord component
-
-
Method Details
-
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. -
resolution
public int resolution()Returns the value of theresolutionrecord component.- Specified by:
resolutionin interfaceMindustryImage- Returns:
- the value of the
resolutionrecord component
-
processors
Returns the value of theprocessorsrecord component.- Returns:
- the value of the
processorsrecord component
-
tiled
Returns the value of thetiledrecord component.- Returns:
- the value of the
tiledrecord component
-