/** * <p>Tests whether the specified <code>number</code> occurs within * this range using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param number the number to test, may be <code>null</code> * @return <code>true</code> if the specified number occurs within this range */ public boolean containsNumber(Number number) { if (number == null) { return false; } return containsFloat(number.floatValue()); }
startVersion = Float.parseFloat( kv[0].trim() ); endVersion = Float.parseFloat( kv[1].trim() ); et = new DeprecatedApiEntry( new FloatRange( startVersion, endVersion ), value);
/** * <p>Tests whether the specified range occurs entirely within this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range occurs entirely within this range * @throws IllegalArgumentException if the range is not of this type */ public boolean containsRange(Range range) { if (range == null) { return false; } return containsFloat(range.getMinimumFloat()) && containsFloat(range.getMaximumFloat()); }
/** * <p>Tests whether the specified range overlaps with this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range overlaps with this range */ public boolean overlapsRange(Range range) { if (range == null) { return false; } return range.containsFloat(min) || range.containsFloat(max) || containsFloat(range.getMinimumFloat()); }
/** * <p>Tests whether the specified <code>number</code> occurs within * this range using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param number the number to test, may be <code>null</code> * @return <code>true</code> if the specified number occurs within this range */ public boolean containsNumber(Number number) { if (number == null) { return false; } return containsFloat(number.floatValue()); }
/** * <p>Tests whether the specified <code>number</code> occurs within * this range using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param number the number to test, may be <code>null</code> * @return <code>true</code> if the specified number occurs within this range */ public boolean containsNumber(Number number) { if (number == null) { return false; } return containsFloat(number.floatValue()); }
/** * <p>Tests whether the specified <code>number</code> occurs within * this range using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param number the number to test, may be <code>null</code> * @return <code>true</code> if the specified number occurs within this range */ public boolean containsNumber(Number number) { if (number == null) { return false; } return containsFloat(number.floatValue()); }
/** * <p>Tests whether the specified <code>number</code> occurs within * this range using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param number the number to test, may be <code>null</code> * @return <code>true</code> if the specified number occurs within this range */ public boolean containsNumber(Number number) { if (number == null) { return false; } return containsFloat(number.floatValue()); }
/** * <p>Tests whether the specified <code>number</code> occurs within * this range using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param number the number to test, may be <code>null</code> * @return <code>true</code> if the specified number occurs within this range */ public boolean containsNumber(Number number) { if (number == null) { return false; } return containsFloat(number.floatValue()); }
public DeprecatedApiEntry getDeprecated( String reqApiVersion ) { if ( isBlank( reqApiVersion )) { return null; } Float reqVer = Float.parseFloat( reqApiVersion ); // the scopes may overlap, we go through range entries first and other entries next for ( DeprecatedApiEntry et : deprecatedApis ) { if ( et.range != null && et.range.containsFloat( reqVer ) ) { return et; } } for ( DeprecatedApiEntry et : deprecatedApis ) { if ( et.endVersion != null && reqVer <= et.endVersion ) { return et; } } return null; }
/** * <p>Tests whether the specified range occurs entirely within this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range occurs entirely within this range * @throws IllegalArgumentException if the range is not of this type */ public boolean containsRange(Range range) { if (range == null) { return false; } return containsFloat(range.getMinimumFloat()) && containsFloat(range.getMaximumFloat()); }
/** * <p>Tests whether the specified range occurs entirely within this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range occurs entirely within this range * @throws IllegalArgumentException if the range is not of this type */ public boolean containsRange(Range range) { if (range == null) { return false; } return containsFloat(range.getMinimumFloat()) && containsFloat(range.getMaximumFloat()); }
/** * <p>Tests whether the specified range occurs entirely within this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range occurs entirely within this range * @throws IllegalArgumentException if the range is not of this type */ public boolean containsRange(Range range) { if (range == null) { return false; } return containsFloat(range.getMinimumFloat()) && containsFloat(range.getMaximumFloat()); }
/** * <p>Tests whether the specified range occurs entirely within this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range occurs entirely within this range * @throws IllegalArgumentException if the range is not of this type */ public boolean containsRange(Range range) { if (range == null) { return false; } return containsFloat(range.getMinimumFloat()) && containsFloat(range.getMaximumFloat()); }
/** * <p>Tests whether the specified range occurs entirely within this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range occurs entirely within this range * @throws IllegalArgumentException if the range is not of this type */ public boolean containsRange(Range range) { if (range == null) { return false; } return containsFloat(range.getMinimumFloat()) && containsFloat(range.getMaximumFloat()); }
/** * <p>Tests whether the specified range overlaps with this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range overlaps with this range */ public boolean overlapsRange(Range range) { if (range == null) { return false; } return range.containsFloat(min) || range.containsFloat(max) || containsFloat(range.getMinimumFloat()); }
/** * <p>Tests whether the specified range overlaps with this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range overlaps with this range */ public boolean overlapsRange(Range range) { if (range == null) { return false; } return range.containsFloat(min) || range.containsFloat(max) || containsFloat(range.getMinimumFloat()); }
/** * <p>Tests whether the specified range overlaps with this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range overlaps with this range */ public boolean overlapsRange(Range range) { if (range == null) { return false; } return range.containsFloat(min) || range.containsFloat(max) || containsFloat(range.getMinimumFloat()); }
/** * <p>Tests whether the specified range overlaps with this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range overlaps with this range */ public boolean overlapsRange(Range range) { if (range == null) { return false; } return range.containsFloat(min) || range.containsFloat(max) || containsFloat(range.getMinimumFloat()); }
/** * <p>Tests whether the specified range overlaps with this range * using <code>float</code> comparison.</p> * * <p><code>null</code> is handled and returns <code>false</code>.</p> * * @param range the range to test, may be <code>null</code> * @return <code>true</code> if the specified range overlaps with this range */ public boolean overlapsRange(Range range) { if (range == null) { return false; } return range.containsFloat(min) || range.containsFloat(max) || containsFloat(range.getMinimumFloat()); }