Class Restriction
- java.lang.Object
-
- org.apache.maven.artifact.versioning.Restriction
-
public class Restriction extends Object
Describes a restriction in versioning.- Author:
- Brett Porter
-
-
Field Summary
Fields Modifier and Type Field Description static Restriction
EVERYTHING
-
Constructor Summary
Constructors Constructor Description Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsVersion(ArtifactVersion version)
boolean
equals(Object other)
ArtifactVersion
getLowerBound()
ArtifactVersion
getUpperBound()
int
hashCode()
boolean
isLowerBoundInclusive()
boolean
isUpperBoundInclusive()
String
toString()
-
-
-
Field Detail
-
EVERYTHING
public static final Restriction EVERYTHING
-
-
Constructor Detail
-
Restriction
public Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
-
-
Method Detail
-
getLowerBound
public ArtifactVersion getLowerBound()
-
isLowerBoundInclusive
public boolean isLowerBoundInclusive()
-
getUpperBound
public ArtifactVersion getUpperBound()
-
isUpperBoundInclusive
public boolean isUpperBoundInclusive()
-
containsVersion
public boolean containsVersion(ArtifactVersion version)
-
-