org.apache.aries.application.impl
Class VersionRangeImpl
java.lang.Object
org.apache.aries.application.impl.VersionRangeImpl
- All Implemented Interfaces:
- VersionRange
public final class VersionRangeImpl
- extends Object
- implements VersionRange
VersionRangeImpl
public VersionRangeImpl(String version)
- Parameters:
version - version for the verioninfo
VersionRangeImpl
public VersionRangeImpl(String version,
boolean exactVersion)
- Parameters:
version - version for the versioninfoexactVersion - whether this is an exact version
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.