org.apache.aries.application.impl
Class VersionRangeImpl

java.lang.Object
  extended by org.apache.aries.application.impl.VersionRangeImpl
All Implemented Interfaces:
VersionRange

public final class VersionRangeImpl
extends Object
implements VersionRange


Constructor Summary
VersionRangeImpl(String version)
           
VersionRangeImpl(String version, boolean exactVersion)
           
 
Method Summary
 boolean equals(Object other)
           
 org.osgi.framework.Version getExactVersion()
           
 org.osgi.framework.Version getMaximumVersion()
           
 org.osgi.framework.Version getMinimumVersion()
           
 int hashCode()
           
 VersionRange intersect(VersionRange r)
           
 boolean isExactVersion()
           
 boolean isMaximumExclusive()
           
 boolean isMaximumUnbounded()
           
 boolean isMinimumExclusive()
           
 boolean matches(org.osgi.framework.Version version)
          This method checks that the provided version matches the desired version.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionRangeImpl

public VersionRangeImpl(String version)
Parameters:
version - version for the verioninfo

VersionRangeImpl

public VersionRangeImpl(String version,
                        boolean exactVersion)
Parameters:
version - version for the versioninfo
exactVersion - whether this is an exact version
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getExactVersion

public org.osgi.framework.Version getExactVersion()
Specified by:
getExactVersion in interface VersionRange

getMaximumVersion

public org.osgi.framework.Version getMaximumVersion()
Specified by:
getMaximumVersion in interface VersionRange

getMinimumVersion

public org.osgi.framework.Version getMinimumVersion()
Specified by:
getMinimumVersion in interface VersionRange

isMaximumExclusive

public boolean isMaximumExclusive()
Specified by:
isMaximumExclusive in interface VersionRange

isMaximumUnbounded

public boolean isMaximumUnbounded()
Specified by:
isMaximumUnbounded in interface VersionRange

isMinimumExclusive

public boolean isMinimumExclusive()
Specified by:
isMinimumExclusive in interface VersionRange

matches

public boolean matches(org.osgi.framework.Version version)
This method checks that the provided version matches the desired version.

Specified by:
matches in interface VersionRange
Parameters:
version - the version.
Returns:
true if the version matches, false otherwise.

isExactVersion

public boolean isExactVersion()
Specified by:
isExactVersion in interface VersionRange

intersect

public VersionRange intersect(VersionRange r)
Specified by:
intersect in interface VersionRange


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