Class Restriction
java.lang.Object
org.spongepowered.plugin.meta.version.Restriction
Describes a restriction in versioning.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRestriction
(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsVersion
(ArtifactVersion version) boolean
int
hashCode()
boolean
boolean
toString()
-
Field Details
-
EVERYTHING
-
-
Constructor Details
-
Restriction
public Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
-
-
Method Details
-
getLowerBound
-
isLowerBoundInclusive
public boolean isLowerBoundInclusive() -
getUpperBound
-
isUpperBoundInclusive
public boolean isUpperBoundInclusive() -
containsVersion
-
hashCode
public int hashCode() -
equals
-
toString
-