/** * Creates long range value. * * @return Instance of {@link RangeValueLong}. */ @SuppressWarnings({ "rawtypes" }) protected RangeValue createRangeValue() { Distribution dist = peek() instanceof Distribution ? (Distribution) pop() : null; Boolean useEdgeCases = peek() instanceof Boolean ? (Boolean) pop() : null; Range range = (Range) pop(); return rangeValueFactory.create(range, useEdgeCases, dist); }
/** * Creates long range value. * * @return Instance of {@link RangeValueLong}. */ @SuppressWarnings({ "rawtypes" }) protected RangeValue createRangeValue() { Distribution dist = peek() instanceof Distribution ? (Distribution) pop() : null; Boolean useEdgeCases = peek() instanceof Boolean ? (Boolean) pop() : null; Range range = (Range) pop(); return rangeValueFactory.create(range, useEdgeCases, dist); }