Forge - Parent 2.0.0-SNAPSHOT

org.jboss.forge.container.versions
Interface VersionRange

All Known Implementing Classes:
EmptyVersionRange, SingleVersionRange

public interface VersionRange

A range of versions to which an Addon may be restricted when building a dependency graph.

Author:
Lincoln Baxter, III

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.
 

Method Detail

isEmpty

boolean isEmpty()
Return true if this VersionRange is empty.


isExact

boolean isExact()
Return true if this VersionRange contains only one single Version.


getMin

Version getMin()
Get the minimum Version (never null.)


getMax

Version getMax()
Get the maximum Version (never null.)


includes

boolean includes(Version version)
Return true if this VersionRange includes the given Version.


getIntersection

VersionRange getIntersection(VersionRange... ranges)
Return the intersection of this VersionRange with the given VersionRange instances (never null.)


Forge - Parent 2.0.0-SNAPSHOT

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