public class IlpDomain extends Object
Compatibility Note: In JViews 8.0, this class was moved from
ilog.cpl.service
to ilog.cpl.util
.
Constructor and Description |
---|
IlpDomain(Class valueClass)
Constructs an empty
IlpDomain . |
IlpDomain(Class valueClass,
List values,
List ranges)
Constructs an
IlpDomain . |
Modifier and Type | Method and Description |
---|---|
void |
addRange(IlpRange value)
Adds a range entry to the range list of the domain.
|
void |
addRange(Object minValue,
Object maxValue)
Adds a range entry to the range list of the domain.
|
void |
addValue(Object value)
Adds a value entry to the value list of the domain.
|
boolean |
contains(Object value)
Tests whether a given value is included in the domain.
|
boolean |
equals(Object other)
Tests
IlpDomain s for equality. |
List |
getRanges()
Gets the current range list of the domain.
|
List |
getSelectionValues(Class type)
This method returns a representative list of possible values.
|
List |
getValues()
Gets the current value list of the domain.
|
Class |
getValueType()
Gets the current value type of the domain.
|
int |
hashCode()
Support for hashmap.
|
String |
toString()
Creates a string containing the domain.
|
public IlpDomain(Class valueClass)
IlpDomain
.valueClass
- Java class of the values in the domain.public List getRanges()
public List getValues()
public Class getValueType()
public void addValue(Object value)
value
- The value to be set.public void addRange(IlpRange value)
value
- The value to be set.public void addRange(Object minValue, Object maxValue)
minValue
- Minimum range valuemaxValue
- Maximum range valuepublic boolean contains(Object value)
value
- The value to be tested.true
if the value is included in the domain.public List getSelectionValues(Class type)
type
- Either Integer.class
or Double.class
.public boolean equals(Object other)
IlpDomain
s for equality.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.