Class Restriction
- java.lang.Object
-
- org.apache.maven.artifact.versioning.Restriction
-
public class Restriction extends java.lang.Object
Describes a restriction in versioning.- Version:
- $Id: Restriction.java 640549 2008-03-24 20:05:11Z bentmann $
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Restriction
EVERYTHING
private ArtifactVersion
lowerBound
private boolean
lowerBoundInclusive
private ArtifactVersion
upperBound
private boolean
upperBoundInclusive
-
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(java.lang.Object other)
ArtifactVersion
getLowerBound()
ArtifactVersion
getUpperBound()
int
hashCode()
boolean
isLowerBoundInclusive()
boolean
isUpperBoundInclusive()
java.lang.String
toString()
-
-
-
Field Detail
-
lowerBound
private final ArtifactVersion lowerBound
-
lowerBoundInclusive
private final boolean lowerBoundInclusive
-
upperBound
private final ArtifactVersion upperBound
-
upperBoundInclusive
private final boolean upperBoundInclusive
-
EVERYTHING
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)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-