Class AbstractDMIBIOSLanguage

java.lang.Object
io.github.eggy03.dmidecode.entity.board.AbstractDMIBIOSLanguage
Direct Known Subclasses:
DMIBIOSLanguage, DMIBIOSLanguage.Json

@Immutable @NullMarked public abstract class AbstractDMIBIOSLanguage extends Object
Immutable representation of BIOS language information retrieved via DMI.

Fields correspond to properties reported by dmidecode for the BIOS Language (Type 13) SMBIOS structure.

Instances of this class are thread-safe.

Usage example


 DMIBIOSLanguage language = new DMIBIOSLanguage.Builder()
     .installableLanguages(List.of("en|US", "fr|FR"))
     .currentLanguage("en|US")
     .build();

 // Create a modified copy
 DMIBIOSLanguage updated = language
     .withCurrentLanguage("fr|FR");
 
Since:
0.2.0
  • Constructor Details

    • AbstractDMIBIOSLanguage

      public AbstractDMIBIOSLanguage()
  • Method Details

    • installableLanguages

      public abstract @Nullable List<@Nullable String> installableLanguages()
    • currentLanguage

      public abstract @Nullable String currentLanguage()
    • toString

      public String toString()
      Overrides:
      toString in class Object