com.atlassian.plugin.util
Class VersionRange
java.lang.Object
com.atlassian.plugin.util.VersionRange
public abstract class VersionRange
- extends Object
Represents a version range. Version ranges can be built programmatically or parsed with the
following definition:
| Range |
Meaning |
| 1.0 |
x >= 1.0 |
| (,1.0] |
x <= 1.0 |
| (,1.0) |
x < 1.0 |
| [1.0] |
x == 1.0 |
| [1.0,) |
x >= 1.0 |
| (1.0,) |
x > 1.0 |
| (1.0,2.0) |
1.0 < x < 2.0 |
| [1.0,2.0] |
1.0 <= x <= 2.0 |
- Since:
- 3.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
or
public VersionRange or(VersionRange other)
empty
public static VersionRange empty()
all
public static VersionRange all()
parse
public static VersionRange parse(String range)
single
public static VersionRange single(String version)
include
public static VersionRange.ActualVersionRangeBuilder include(String version)
exclude
public static VersionRange.ActualVersionRangeBuilder exclude(String version)
unbounded
public static VersionRange.ActualVersionRangeBuilder unbounded()
Copyright © 2015 Atlassian. All rights reserved.