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
-
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). -
name
-
version
-
role
-