public class Restriction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Restriction |
EVERYTHING |
private ArtifactVersion |
lowerBound |
private boolean |
lowerBoundInclusive |
private ArtifactVersion |
upperBound |
private boolean |
upperBoundInclusive |
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() |
java.lang.String |
toStringFriendly() |
private final ArtifactVersion lowerBound
private final boolean lowerBoundInclusive
private final ArtifactVersion upperBound
private final boolean upperBoundInclusive
public static final Restriction EVERYTHING
public Restriction(@Nullable ArtifactVersion lowerBound, boolean lowerBoundInclusive, @Nullable ArtifactVersion upperBound, boolean upperBoundInclusive)
@Nullable public ArtifactVersion getLowerBound()
public boolean isLowerBoundInclusive()
@Nullable 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
public java.lang.String toStringFriendly()