private boolean isType(Class<?> clazz, Range<?> range) { return clazz.isInstance(range.getBeginning()); } }
private boolean isType(Class<?> clazz, Range<?> range) { return clazz.isInstance(range.getBeginning()); } }
private boolean isType(Class<?> clazz, Range<?> range) { return clazz.isInstance(range.getBeginning()); } }
private boolean isType(Class<?> clazz, Range<?> range) { return clazz.isInstance(range.getBeginning()); } }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected boolean isIncrementGreaterThanRangeSize() { return Math.abs(range.getBeginning() - range.getEnd()) <= Math.abs(increment); }
@Override protected void eval() { T nextValue = peekNextValue(); if (isValueInBounds(nextValue)) { val = nextValue; } else { val = range.getBeginning(); } }
@Override protected void eval() { T nextValue = peekNextValue(); if (isValueInBounds(nextValue)) { val = nextValue; } else { val = range.getBeginning(); } }
/** * Constructs range value with specified <code>range</code>, <code>useEdgeCases</code> and * <code>distribution</code>. * * @param range Range. * @param useEdgeCases Indicates whether to create edge cases as first two values or not. * @param distribution Distribution to use for value selection. */ public RangeValue(Range<T> range, boolean useEdgeCases, Distribution distribution) { if (range == null) { throw new IllegalArgumentException("Range cannot be null."); } if (!range.isIncreasing()) { throw new InvalidRangeBoundsException("End of the range must be greater than the beginning of the range."); } if (distribution == null) { throw new IllegalArgumentException("Distribution cannot be null."); } this.beginning = range.getBeginning(); this.end = range.getEnd(); this.useEdgeCases = useEdgeCases; this.distribution = distribution; }
/** * Constructs range value with specified <code>range</code>, <code>useEdgeCases</code> and * <code>distribution</code>. * * @param range Range. * @param useEdgeCases Indicates whether to create edge cases as first two values or not. * @param distribution Distribution to use for value selection. */ public RangeValue(Range<T> range, boolean useEdgeCases, Distribution distribution) { if (range == null) { throw new IllegalArgumentException("Range cannot be null."); } if (!range.isIncreasing()) { throw new InvalidRangeBoundsException("End of the range must be greater than the beginning of the range."); } if (distribution == null) { throw new IllegalArgumentException("Distribution cannot be null."); } this.beginning = range.getBeginning(); this.end = range.getEnd(); this.useEdgeCases = useEdgeCases; this.distribution = distribution; }