org.apache.maven.artifact.versioning
Class Restriction

java.lang.Object
  extended by org.apache.maven.artifact.versioning.Restriction

public class Restriction
extends Object

Describes a restriction in versioning.

Version:
$Id: Restriction.java 640549 2008-03-24 20:05:11Z bentmann $
Author:
Brett Porter

Constructor Summary
Restriction(ArtifactVersion lowerBound, boolean lowerBoundInclusive, ArtifactVersion upperBound, boolean upperBoundInclusive)
           
 
Method Summary
 boolean containsVersion(ArtifactVersion version)
           
 boolean equals(Object other)
           
 ArtifactVersion getLowerBound()
           
 ArtifactVersion getUpperBound()
           
 int hashCode()
           
 boolean isLowerBoundInclusive()
           
 boolean isUpperBoundInclusive()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.