Record Class MPlatform
java.lang.Object
java.lang.Record
com.io7m.montarre.api.MPlatform
- Record Components:
architecture- The architectureoperatingSystem- The operating system name
- All Implemented Interfaces:
Comparable<MPlatform>
public record MPlatform(MArchitectureName architecture, MOperatingSystemName operatingSystem)
extends Record
implements Comparable<MPlatform>
A platform.
-
Constructor Summary
ConstructorsConstructorDescriptionMPlatform(MArchitectureName architecture, MOperatingSystemName operatingSystem) A platform. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperatingSystemrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MPlatform
A platform.- Parameters:
architecture- The architectureoperatingSystem- The operating system name
-
-
Method Details
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<MPlatform>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
operatingSystem
Returns the value of theoperatingSystemrecord component.- Returns:
- the value of the
operatingSystemrecord component
-