org.optaplanner.core.api.domain.valuerange
Class ValueRangeFactory
java.lang.Object
   org.optaplanner.core.api.domain.valuerange.ValueRangeFactory
org.optaplanner.core.api.domain.valuerange.ValueRangeFactory
- public class ValueRangeFactory 
- extends Object
Factory for ValueRange.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ValueRangeFactory
public ValueRangeFactory()
createIntValueRange
public static CountableValueRange<Integer> createIntValueRange(int from,
                                                               int to)
- 
- Parameters:
- from- inclusive minimum
- to- exclusive maximum, >=- from
- Returns:
- never null
 
createIntValueRange
public static CountableValueRange<Integer> createIntValueRange(int from,
                                                               int to,
                                                               int incrementUnit)
- 
- Parameters:
- from- inclusive minimum
- to- exclusive maximum, >=- from
- incrementUnit- > 0
- Returns:
- never null
 
createBigDecimalValueRange
public static CountableValueRange<BigDecimal> createBigDecimalValueRange(BigDecimal from,
                                                                         BigDecimal to)
- All parameters must have the same BigDecimal.scale().
 
- 
- Parameters:
- from- inclusive minimum
- to- exclusive maximum, >=- from
 
createBigDecimalValueRange
public static CountableValueRange<BigDecimal> createBigDecimalValueRange(BigDecimal from,
                                                                         BigDecimal to,
                                                                         BigDecimal incrementUnit)
- All parameters must have the same BigDecimal.scale().
 
- 
- Parameters:
- from- inclusive minimum
- to- exclusive maximum, >=- from
- incrementUnit- > 0
 
createDoubleValueRange
public static ValueRange<Double> createDoubleValueRange(double from,
                                                        double to)
- 
- Parameters:
- from- inclusive minimum
- to- exclusive maximum, >=- from
 
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.