Package com.onec.desktop
Record Class DesktopManifest
java.lang.Object
java.lang.Record
com.onec.desktop.DesktopManifest
public record DesktopManifest(String title, boolean singleInstance, String splash, DesktopManifest.Window window, DesktopManifest.Tray tray)
extends Record
The immutable window description the Tauri shell fetches from
/api/desktop/manifest at boot. Plain records so Jackson serialises
them to the JSON the shell consumes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDesktopManifest(String title, boolean singleInstance, String splash, DesktopManifest.Window window, DesktopManifest.Tray tray) Creates an instance of aDesktopManifestrecord 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.booleanReturns the value of thesingleInstancerecord component.splash()Returns the value of thesplashrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.tray()Returns the value of thetrayrecord component.window()Returns the value of thewindowrecord component.
-
Constructor Details
-
DesktopManifest
public DesktopManifest(String title, boolean singleInstance, String splash, DesktopManifest.Window window, DesktopManifest.Tray tray) Creates an instance of aDesktopManifestrecord class.- Parameters:
title- the value for thetitlerecord componentsingleInstance- the value for thesingleInstancerecord componentsplash- the value for thesplashrecord componentwindow- the value for thewindowrecord componenttray- the value for thetrayrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
singleInstance
public boolean singleInstance()Returns the value of thesingleInstancerecord component.- Returns:
- the value of the
singleInstancerecord component
-
splash
Returns the value of thesplashrecord component.- Returns:
- the value of the
splashrecord component
-
window
Returns the value of thewindowrecord component.- Returns:
- the value of the
windowrecord component
-
tray
Returns the value of thetrayrecord component.- Returns:
- the value of the
trayrecord component
-