public class Restriction extends Object
| Modifier and Type | Field and Description |
|---|---|
static Restriction |
EVERYTHING
The Constant EVERYTHING.
|
static Restriction |
NONE
The Constant NONE.
|
| Constructor and Description |
|---|
Restriction(ArtifactVersion lowerBound,
boolean lowerBoundInclusive,
ArtifactVersion upperBound,
boolean upperBoundInclusive)
Instantiates a new restriction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVersion(ArtifactVersion version)
Contains version.
|
boolean |
equals(Object other) |
ArtifactVersion |
getLowerBound()
Gets the lower bound.
|
ArtifactVersion |
getUpperBound()
Gets the upper bound.
|
int |
hashCode() |
boolean |
isLowerBoundInclusive()
Checks if is lower bound inclusive.
|
boolean |
isUpperBoundInclusive()
Checks if is upper bound inclusive.
|
String |
toString() |
public static final Restriction EVERYTHING
public static final Restriction NONE
public Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
lowerBound - the lower boundlowerBoundInclusive - the lower bound inclusiveupperBound - the upper boundupperBoundInclusive - the upper bound inclusivepublic ArtifactVersion getLowerBound()
public boolean isLowerBoundInclusive()
public ArtifactVersion getUpperBound()
public boolean isUpperBoundInclusive()
public boolean containsVersion(ArtifactVersion version)
version - the versionCopyright © 2018. All rights reserved.