Forge - Parent 2.0.0.Alpha1

org.jboss.forge.container.versions
Class SingleVersionRange

java.lang.Object
  extended by org.jboss.forge.container.versions.SingleVersionRange
All Implemented Interfaces:
VersionRange

public class SingleVersionRange
extends Object
implements VersionRange

Author:
Lincoln Baxter, III

Constructor Summary
SingleVersionRange(Version version)
           
 
Method Summary
 VersionRange getIntersection(VersionRange... ranges)
          Return the intersection of this VersionRange with the given VersionRange instances (never null.)
 Version getMax()
          Get the maximum Version (never null.)
 Version getMin()
          Get the minimum Version (never null.)
 boolean includes(Version version)
          Return true if this VersionRange includes the given Version.
 boolean isEmpty()
          Return true if this VersionRange is empty.
 boolean isExact()
          Return true if this VersionRange contains only one single Version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleVersionRange

public SingleVersionRange(Version version)
Method Detail

isEmpty

public boolean isEmpty()
Description copied from interface: VersionRange
Return true if this VersionRange is empty.

Specified by:
isEmpty in interface VersionRange

isExact

public boolean isExact()
Description copied from interface: VersionRange
Return true if this VersionRange contains only one single Version.

Specified by:
isExact in interface VersionRange

getMin

public Version getMin()
Description copied from interface: VersionRange
Get the minimum Version (never null.)

Specified by:
getMin in interface VersionRange

getMax

public Version getMax()
Description copied from interface: VersionRange
Get the maximum Version (never null.)

Specified by:
getMax in interface VersionRange

includes

public boolean includes(Version version)
Description copied from interface: VersionRange
Return true if this VersionRange includes the given Version.

Specified by:
includes in interface VersionRange

getIntersection

public VersionRange getIntersection(VersionRange... ranges)
Description copied from interface: VersionRange
Return the intersection of this VersionRange with the given VersionRange instances (never null.)

Specified by:
getIntersection in interface VersionRange

Forge - Parent 2.0.0.Alpha1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.