org.jboss.osgi.metadata
Class VersionRange

java.lang.Object
  extended by org.jboss.osgi.metadata.VersionRange

public class VersionRange
extends Object

Represents an OSGi version range. This code originally comes from Apache Felix.

Since:
26-Jan-2011
Author:
Thomas.Diesler@jboss.com

Field Summary
static VersionRange infiniteRange
           
 
Constructor Summary
VersionRange(Version low, boolean isLowInclusive, Version high, boolean isHighInclusive)
           
 
Method Summary
 boolean equals(Object obj)
           
 Version getCeiling()
           
 Version getFloor()
           
 int hashCode()
           
 boolean isCeilingInclusive()
           
 boolean isFloorInclusive()
           
 boolean isInRange(Version version)
           
static VersionRange parse(String range)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

infiniteRange

public static final VersionRange infiniteRange
Constructor Detail

VersionRange

public VersionRange(Version low,
                    boolean isLowInclusive,
                    Version high,
                    boolean isHighInclusive)
Method Detail

getFloor

public Version getFloor()

isFloorInclusive

public boolean isFloorInclusive()

getCeiling

public Version getCeiling()

isCeilingInclusive

public boolean isCeilingInclusive()

isInRange

public boolean isInRange(Version version)

parse

public static VersionRange parse(String range)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.