Package com.io7m.montarre.api
Record Class MFlatpakRuntime
java.lang.Object
java.lang.Record
com.io7m.montarre.api.MFlatpakRuntime
- Record Components:
name- The runtime name (such as "org.freedesktop.Platform").version- The version (such as "24.08")role- The runtime role
- All Implemented Interfaces:
MFlatpakMetadataElementType
public record MFlatpakRuntime(String name, String version, MFlatpakRuntimeRole role)
extends Record
implements MFlatpakMetadataElementType
A flatpak runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionMFlatpakRuntime(String name, String version, MFlatpakRuntimeRole role) A flatpak runtime. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fullName(MArchitectureName architecture) Obtain the full name, including the architecture.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
MFlatpakRuntime
A flatpak runtime.- Parameters:
name- The runtime name (such as "org.freedesktop.Platform").version- The version (such as "24.08")role- The runtime role
-
-
Method Details
-
fullName
Obtain the full name, including the architecture.- Parameters:
architecture- The architecture- Returns:
- The full name
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-