public abstract class VersionRange extends Object
| 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 |
| Modifier and Type | Class and Description |
|---|---|
static class |
VersionRange.ActualVersionRangeBuilder |
| Modifier and Type | Method and Description |
|---|---|
static VersionRange |
all() |
static VersionRange |
empty() |
static VersionRange.ActualVersionRangeBuilder |
exclude(String version) |
static VersionRange.ActualVersionRangeBuilder |
include(String version) |
VersionRange |
or(VersionRange other) |
static VersionRange |
parse(String range) |
static VersionRange |
single(String version) |
static VersionRange.ActualVersionRangeBuilder |
unbounded() |
public VersionRange or(VersionRange other)
public static VersionRange empty()
public static VersionRange all()
public static VersionRange parse(String range)
public static VersionRange single(String version)
public static VersionRange.ActualVersionRangeBuilder include(String version)
public static VersionRange.ActualVersionRangeBuilder exclude(String version)
public static VersionRange.ActualVersionRangeBuilder unbounded()
Copyright © 2019 Atlassian. All rights reserved.