public class PlatformModelMatcher extends Object
| Constructor and Description |
|---|
PlatformModelMatcher(Platforms platforms,
Platform platform)
The platform factory.
|
| Modifier and Type | Method and Description |
|---|---|
Platform |
getCurrentPlatform()
Returns the current platform.
|
boolean |
match(Platform platform,
OsModel model)
Determines if the OS model matches the specified platform.
|
boolean |
matches(Platform platform,
List<OsModel> models)
Determines if a platform is in the specified list of models.
|
boolean |
matchesCurrentPlatform(List<OsModel> models)
Determines if the current platform is in the specified list of models.
|
boolean |
matchesCurrentPlatform(OsModel model)
Determines if the OS model matches the current platform.
|
public Platform getCurrentPlatform()
public boolean matchesCurrentPlatform(OsModel model)
model - the OS modeltrue if they matchpublic boolean match(Platform platform, OsModel model)
platform - the platformmodel - the OS modeltrue if they matchpublic boolean matchesCurrentPlatform(List<OsModel> models)
models - the modelstrue if the current platform is in the list of models, or if the models are null or
emptyCopyright © 2001–2025. All rights reserved.