public class Restriction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Restriction |
EVERYTHING |
Constructor and Description |
---|
Restriction(ArtifactVersion lowerBound,
boolean lowerBoundInclusive,
ArtifactVersion upperBound,
boolean upperBoundInclusive) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsVersion(ArtifactVersion version) |
boolean |
equals(java.lang.Object other) |
ArtifactVersion |
getLowerBound() |
ArtifactVersion |
getUpperBound() |
int |
hashCode() |
boolean |
isLowerBoundInclusive() |
boolean |
isUpperBoundInclusive() |
java.lang.String |
toString() |
public static final Restriction EVERYTHING
public Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
public ArtifactVersion getLowerBound()
public boolean isLowerBoundInclusive()
public ArtifactVersion getUpperBound()
public boolean isUpperBoundInclusive()
public boolean containsVersion(ArtifactVersion version)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object