Class MMetadataFlatpak
java.lang.Object
com.io7m.montarre.api.MMetadataFlatpak
- All Implemented Interfaces:
MMetadataFlatpakType
Package metadata specific to Flatpak.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MMetadataFlatpak.Builderbuilder()Creates a builder forMMetadataFlatpak.static MMetadataFlatpakcopyOf(MMetadataFlatpakType instance) Creates an immutable copy of aMMetadataFlatpakTypevalue.booleanThis instance is equal to all instances ofMMetadataFlatpakthat have equal attribute values.inthashCode()Computes a hash code from attributes:permissions,runtimes.runtimes()toString()Prints the immutable valueMMetadataFlatpakwith attribute values.final MMetadataFlatpakwithPermissions(MFlatpakPermission... elements) Copy the current immutable object with elements that replace the content ofpermissions.final MMetadataFlatpakwithPermissions(Iterable<? extends MFlatpakPermission> elements) Copy the current immutable object with elements that replace the content ofpermissions.final MMetadataFlatpakwithRuntimes(MFlatpakRuntime... elements) Copy the current immutable object with elements that replace the content ofruntimes.final MMetadataFlatpakwithRuntimes(Iterable<? extends MFlatpakRuntime> elements) Copy the current immutable object with elements that replace the content ofruntimes.
-
Method Details
-
permissions
- Specified by:
permissionsin interfaceMMetadataFlatpakType- Returns:
- The required application permissions
-
runtimes
- Specified by:
runtimesin interfaceMMetadataFlatpakType- Returns:
- The required runtimes
-
withPermissions
Copy the current immutable object with elements that replace the content ofpermissions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPermissions
Copy the current immutable object with elements that replace the content ofpermissions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of permissions elements to set- Returns:
- A modified copy or
thisif not changed
-
withRuntimes
Copy the current immutable object with elements that replace the content ofruntimes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRuntimes
Copy the current immutable object with elements that replace the content ofruntimes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of runtimes elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aMMetadataFlatpakTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MMetadataFlatpak instance
-
builder
Creates a builder forMMetadataFlatpak.MMetadataFlatpak.builder() .addPermissions|addAllPermissions(com.io7m.montarre.api.MFlatpakPermission) //
permissionselements .addRuntimes|addAllRuntimes(com.io7m.montarre.api.MFlatpakRuntime) //runtimeselements .build();- Returns:
- A new MMetadataFlatpak builder
-