public class ValueRangeFactory extends Object
ValueRange
.Constructor and Description |
---|
ValueRangeFactory() |
Modifier and Type | Method and Description |
---|---|
static CountableValueRange<BigDecimal> |
createBigDecimalValueRange(BigDecimal from,
BigDecimal to)
Build a
CountableValueRange of all BigDecimal values (of a specific scale) between 2 bounds. |
static CountableValueRange<BigDecimal> |
createBigDecimalValueRange(BigDecimal from,
BigDecimal to,
BigDecimal incrementUnit)
Build a
CountableValueRange of a subset of BigDecimal values (of a specific scale) between 2 bounds. |
static CountableValueRange<BigInteger> |
createBigIntegerValueRange(BigInteger from,
BigInteger to)
Build a
CountableValueRange of all BigInteger values between 2 bounds. |
static CountableValueRange<BigInteger> |
createBigIntegerValueRange(BigInteger from,
BigInteger to,
BigInteger incrementUnit)
Build a
CountableValueRange of a subset of BigInteger values between 2 bounds. |
static ValueRange<Double> |
createDoubleValueRange(double from,
double to)
Build an uncountable
ValueRange of all double values between 2 bounds. |
static CountableValueRange<Integer> |
createIntValueRange(int from,
int to)
Build a
CountableValueRange of all int values between 2 bounds. |
static CountableValueRange<Integer> |
createIntValueRange(int from,
int to,
int incrementUnit)
Build a
CountableValueRange of a subset of int values between 2 bounds. |
static CountableValueRange<Long> |
createLongValueRange(long from,
long to)
Build a
CountableValueRange of all long values between 2 bounds. |
static CountableValueRange<Long> |
createLongValueRange(long from,
long to,
long incrementUnit)
Build a
CountableValueRange of a subset of long values between 2 bounds. |
public static CountableValueRange<Integer> createIntValueRange(int from, int to)
CountableValueRange
of all int
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
public static CountableValueRange<Integer> createIntValueRange(int from, int to, int incrementUnit)
CountableValueRange
of a subset of int
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
incrementUnit
- > 0
public static CountableValueRange<Long> createLongValueRange(long from, long to)
CountableValueRange
of all long
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
public static CountableValueRange<Long> createLongValueRange(long from, long to, long incrementUnit)
CountableValueRange
of a subset of long
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
incrementUnit
- > 0
public static ValueRange<Double> createDoubleValueRange(double from, double to)
ValueRange
of all double
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
public static CountableValueRange<BigInteger> createBigIntegerValueRange(BigInteger from, BigInteger to)
CountableValueRange
of all BigInteger
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
public static CountableValueRange<BigInteger> createBigIntegerValueRange(BigInteger from, BigInteger to, BigInteger incrementUnit)
CountableValueRange
of a subset of BigInteger
values between 2 bounds.from
- inclusive minimumto
- exclusive maximum, >= from
incrementUnit
- > 0
public static CountableValueRange<BigDecimal> createBigDecimalValueRange(BigDecimal from, BigDecimal to)
CountableValueRange
of all BigDecimal
values (of a specific scale) between 2 bounds.
All parameters must have the same BigDecimal.scale()
.from
- inclusive minimumto
- exclusive maximum, >= from
public static CountableValueRange<BigDecimal> createBigDecimalValueRange(BigDecimal from, BigDecimal to, BigDecimal incrementUnit)
CountableValueRange
of a subset of BigDecimal
values (of a specific scale) between 2 bounds.
All parameters must have the same BigDecimal.scale()
.from
- inclusive minimumto
- exclusive maximum, >= from
incrementUnit
- > 0
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.