- All Superinterfaces:
MachineCompatibilityAspect
- All Known Implementing Classes:
CLibraries
Models a C library for platforms that have multiple competing implementations.
Currently this means just Linux. We don't try to model the varying implementations of the Microsoft Visual C++ runtime because it's usually a bundled part of the app and is thus not relevant for modelling application compatibility. Other platforms tend to have a single C runtime implementation.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CLibraryReturns a C library from thealias mapor throwsUnrecognizedAliasException.static CLibraryfromOrNull(String name) Lower-cases the name parameter and then looks it up in thealias map.Methods inherited from interface dev.hydraulic.types.machines.MachineCompatibilityAspect
getAliases, getDisplayName, getIdentifier, getVendor
-
Method Details
-
fromOrNull
Lower-cases the name parameter and then looks it up in thealias map.- Parameters:
name- The primary name or alias of an operating system. Case-insensitive.- Returns:
- a member of the enum or null if not recognized.
- Throws:
IllegalArgumentException- if name is blank.
-
from
Returns a C library from thealias mapor throwsUnrecognizedAliasException.- Parameters:
name- primary name or alias of the well known operating system. Case-insensitive.- Returns:
- the C library enum value.
- Throws:
IllegalArgumentException- if name is blank.UnrecognizedAliasException- if name isn't a known operating system name or alias (compared case insensitively).
-