SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.model.Menu Class Reference

Represents a Menu configuration with a unique ID and a mode. More...

+ Collaboration diagram for fr.softsf.sudokufx.model.Menu:

Classes

class  MenuBuilder
 Builder class for creating Menu instances. More...
 

Public Member Functions

 Menu (Byte menuid, byte mode)
 Full constructor to initialize a menu with all fields.
 
boolean equals (Object obj)
 Compares this menu with another object for equality based on all fields.
 
Byte getMenuid ()
 Returns the unique identifier of the menu.
 
byte getMode ()
 Returns the mode of the menu.
 
int hashCode ()
 Computes the hash code based on all fields.
 
void setMode (byte mode)
 Sets the mode of the menu.
 
String toString ()
 Returns a string representation of the menu.
 

Static Public Member Functions

static MenuBuilder builder ()
 Creates a new MenuBuilder for fluent construction of Menu instances.
 

Protected Member Functions

 Menu ()
 Protected default constructor for JPA.
 

Private Attributes

Byte menuid
 Unique identifier of the menu (primary key).
 
byte mode
 Mode of the menu (1–3).
 

Detailed Description

Represents a Menu configuration with a unique ID and a mode.

Provides getters, setters, and a builder for fluent construction.

Constructor & Destructor Documentation

◆ Menu() [1/2]

fr.softsf.sudokufx.model.Menu.Menu ( )
protected

Protected default constructor for JPA.

+ Here is the call graph for this function:

◆ Menu() [2/2]

fr.softsf.sudokufx.model.Menu.Menu ( Byte menuid,
byte mode )

Full constructor to initialize a menu with all fields.

Parameters
menuidthe unique ID of the menu
modethe mode value (1–3)

Member Function Documentation

◆ builder()

static MenuBuilder fr.softsf.sudokufx.model.Menu.builder ( )
static

Creates a new MenuBuilder for fluent construction of Menu instances.

◆ equals()

boolean fr.softsf.sudokufx.model.Menu.equals ( Object obj)

Compares this menu with another object for equality based on all fields.

+ Here is the call graph for this function:

◆ getMenuid()

Byte fr.softsf.sudokufx.model.Menu.getMenuid ( )

Returns the unique identifier of the menu.

◆ getMode()

byte fr.softsf.sudokufx.model.Menu.getMode ( )

Returns the mode of the menu.

◆ hashCode()

int fr.softsf.sudokufx.model.Menu.hashCode ( )

Computes the hash code based on all fields.

◆ setMode()

void fr.softsf.sudokufx.model.Menu.setMode ( byte mode)

Sets the mode of the menu.

◆ toString()

String fr.softsf.sudokufx.model.Menu.toString ( )

Returns a string representation of the menu.

Member Data Documentation

◆ menuid

Byte fr.softsf.sudokufx.model.Menu.menuid
private

Unique identifier of the menu (primary key).

◆ mode

byte fr.softsf.sudokufx.model.Menu.mode
private

Mode of the menu (1–3).


The documentation for this class was generated from the following file: