at.spardat.xma.boot.antext
Class GenPreloadFile.VersionRange
java.lang.Object
at.spardat.xma.boot.antext.GenPreloadFile.VersionRange
- Enclosing class:
- GenPreloadFile
- public static class GenPreloadFile.VersionRange
- extends java.lang.Object
Represents a range of version numbers defined by a minimum and a maximum version number.
Used in build.xml in the propertes "includes" and "excludes" of -tag of this ant task.
String format: ..-.. e.g. includes="1.7.5-1.8.4"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GenPreloadFile.VersionRange
public GenPreloadFile.VersionRange()
parse
public static GenPreloadFile.VersionRange parse(java.lang.String string)
- Parses a version range from a String.
String format: ..-.. e.g. includes="1.7.5-1.8.4"
No withespaces are supported in this string.
- Returns:
- the parsed range or null if the string does not contain a valid version range.
isInRange
public boolean isInRange(GenPreloadFile.Version version)
- Dedermines if the given version is contained in the range.
The borders of the range are inclusive meaning this method returns true
if min <= version or version <= max.
toString
public java.lang.String toString()
- Returns the string representation of the range.