public static VersionRange getFilterRange ( FilterVersion minVersion , FilterVersion maxVersion ) { VersionRange vr = null ; Version vmin = minVersion == null ? Version . emptyVersion : new Version ( minVersion . getValue ( ) ) ; Version vmax = maxVersion == null ? null : new Version ( maxVersion . getValue ( ) ) ; char leftType = ( minVersion == null || minVersion . getInclusive ( ) ) ? VersionRange . LEFT_CLOSED : VersionRange . LEFT_OPEN ; char rightType = ( maxVersion == null || maxVersion . getInclusive ( ) ) ? VersionRange . RIGHT_CLOSED : VersionRange . RIGHT_OPEN ; vr = new VersionRange ( leftType , vmin , vmax , rightType ) ; return vr ; }
This method creates a version range from the supplied min and max FilterVersion