- All Implemented Interfaces:
CLibrary,MachineCompatibilityAspect,Serializable,Comparable<CLibraries>,Constable
Enumerates glibc and muslc, the two C libraries that matter on Linux.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionA set containing theidentifierand any other strings that are widely used in the industry to identify this OS, all in lower case.Should return the display name of an operating system, suitable for presentation to humans.The operating system name in a form suitable for use as an identifier in code or filing systems, i.e.Returns the display name of the organization that makes this OS, or "Open source".static CLibrariesReturns the enum constant of this class with the specified name.static CLibraries[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GLIBC
The GNU C Library, also known just as "gnu". -
MUSLC
The muslc library as used in Alpine Linux, aliased by "musl" and "alpine".
-
-
Field Details
-
ALIAS_MAP
An unmodifiable map of lower case names and aliases of well known operating systems.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDisplayName
Description copied from interface:MachineCompatibilityAspectShould return the display name of an operating system, suitable for presentation to humans. The display name may have unusual capitalization, slashes in the middle of it etc.- Specified by:
getDisplayNamein interfaceMachineCompatibilityAspect
-
getIdentifier
Description copied from interface:MachineCompatibilityAspectThe operating system name in a form suitable for use as an identifier in code or filing systems, i.e. all lower case with no punctuation or symbols.- Specified by:
getIdentifierin interfaceMachineCompatibilityAspect
-
getAliases
Description copied from interface:MachineCompatibilityAspectA set containing theidentifierand any other strings that are widely used in the industry to identify this OS, all in lower case. UnlikeMachineCompatibilityAspect.getIdentifier(), the strings returned here may contain punctuation or space characters.- Specified by:
getAliasesin interfaceMachineCompatibilityAspect
-
getVendor
Description copied from interface:MachineCompatibilityAspectReturns the display name of the organization that makes this OS, or "Open source".- Specified by:
getVendorin interfaceMachineCompatibilityAspect
-