public class SupportedPatternFormatVersions extends Object
Objects of this class should not be created directly as they are part of the internal logic.
| Constructor and Description |
|---|
SupportedPatternFormatVersions()
Create the SupportedPatternFormatVersions object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(DetectionConstants.FORMAT_VERSIONS formatVersion)
Check if the given format version Enum is present in the list.
|
boolean |
contains(Version version)
Check if he given Version is present in the list.
|
DetectionConstants.FORMAT_VERSIONS |
getEnum(Version version)
Get the FORMAT_VERSIONS Enum associated with the provided Version object.
|
Version |
getVersion(DetectionConstants.FORMAT_VERSIONS formatVersion)
Get the Version associated with the provided Enum.
|
String |
toString()
Converts the list to string.
|
public SupportedPatternFormatVersions()
public boolean contains(DetectionConstants.FORMAT_VERSIONS formatVersion)
formatVersion - FORMAT_VERSIONS Enum to check for.public boolean contains(Version version)
version - Version object to check for.public Version getVersion(DetectionConstants.FORMAT_VERSIONS formatVersion)
formatVersion - FORMAT_VERSIONS Enum to get Version for.public DetectionConstants.FORMAT_VERSIONS getEnum(Version version)
version - Version object to get FORMAT_VERSIONS Enum for.Copyright © 2017 51Degrees. All rights reserved.