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 CountableValueRange<Boolean> |
createBooleanValueRange()
Build a
CountableValueRange of both boolean values. |
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<LocalDateTime> |
createLocalDateTimeValueRange(LocalDateTime from,
LocalDateTime to,
long incrementUnitAmount,
TemporalUnit incrementUnitType)
Build a
CountableValueRange of a subset of LocalDateTime values between 2 bounds. |
static CountableValueRange<LocalDate> |
createLocalDateValueRange(LocalDate from,
LocalDate to,
long incrementUnitAmount,
TemporalUnit incrementUnitType)
Build a
CountableValueRange of a subset of LocalDate values between 2 bounds. |
static CountableValueRange<LocalTime> |
createLocalTimeValueRange(LocalTime from,
LocalTime to,
long incrementUnitAmount,
TemporalUnit incrementUnitType)
Build a
CountableValueRange of a subset of LocalTime 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. |
static <Temporal_ extends Temporal & Comparable<? super Temporal_>> |
createTemporalValueRange(Temporal_ from,
Temporal_ to,
long incrementUnitAmount,
TemporalUnit incrementUnitType)
Build a
CountableValueRange of a subset of Temporal values (such as LocalDate or LocalDateTime) between 2 bounds. |
public static CountableValueRange<Boolean> createBooleanValueRange()
CountableValueRange of both boolean values.public static CountableValueRange<Integer> createIntValueRange(int from, int to)
CountableValueRange of all int values between 2 bounds.from - inclusive minimumto - exclusive maximum, >= frompublic 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, >= fromincrementUnit - > 0public static CountableValueRange<Long> createLongValueRange(long from, long to)
CountableValueRange of all long values between 2 bounds.from - inclusive minimumto - exclusive maximum, >= frompublic 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, >= fromincrementUnit - > 0public static ValueRange<Double> createDoubleValueRange(double from, double to)
ValueRange of all double values between 2 bounds.from - inclusive minimumto - exclusive maximum, >= frompublic static CountableValueRange<BigInteger> createBigIntegerValueRange(BigInteger from, BigInteger to)
CountableValueRange of all BigInteger values between 2 bounds.from - inclusive minimumto - exclusive maximum, >= frompublic 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, >= fromincrementUnit - > 0public 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, >= frompublic 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, >= fromincrementUnit - > 0public static CountableValueRange<LocalDate> createLocalDateValueRange(LocalDate from, LocalDate to, long incrementUnitAmount, TemporalUnit incrementUnitType)
CountableValueRange of a subset of LocalDate values between 2 bounds.
Facade for createTemporalValueRange(Temporal, Temporal, long, TemporalUnit).
from - never null, inclusive minimumto - never null, exclusive maximum, >= fromincrementUnitAmount - > 0incrementUnitType - never null, must be supportedpublic static CountableValueRange<LocalTime> createLocalTimeValueRange(LocalTime from, LocalTime to, long incrementUnitAmount, TemporalUnit incrementUnitType)
CountableValueRange of a subset of LocalTime values between 2 bounds.
Facade for createTemporalValueRange(Temporal, Temporal, long, TemporalUnit).
from - never null, inclusive minimumto - never null, exclusive maximum, >= fromincrementUnitAmount - > 0incrementUnitType - never null, must be supportedpublic static CountableValueRange<LocalDateTime> createLocalDateTimeValueRange(LocalDateTime from, LocalDateTime to, long incrementUnitAmount, TemporalUnit incrementUnitType)
CountableValueRange of a subset of LocalDateTime values between 2 bounds.
Facade for createTemporalValueRange(Temporal, Temporal, long, TemporalUnit).
from - never null, inclusive minimumto - never null, exclusive maximum, >= fromincrementUnitAmount - > 0incrementUnitType - never null, must be supportedpublic static <Temporal_ extends Temporal & Comparable<? super Temporal_>> CountableValueRange<Temporal_> createTemporalValueRange(Temporal_ from, Temporal_ to, long incrementUnitAmount, TemporalUnit incrementUnitType)
CountableValueRange of a subset of Temporal values (such as LocalDate or LocalDateTime) between 2 bounds.
All parameters must have the same TemporalUnit.from - never null, inclusive minimumto - never null, exclusive maximum, >= fromincrementUnitAmount - > 0incrementUnitType - never null, must be supported by from and toCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.