public class DiscreteDomain extends Object implements Domain
| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<Object,Object> |
values
Value for this domain.
|
| Constructor and Description |
|---|
DiscreteDomain()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DomainVisitor visitor)
Accept a new visitor.
|
DiscreteDomain |
clone()
Clone the domain
|
Object |
getValueForIdentifier(Object identifier)
Return value associated to identifier.
|
SortedMap<Object,Object> |
getValues()
Get domaine values.
|
void |
setValues(SortedMap<Object,Object> values)
Set domain values.
|
public void setValues(SortedMap<Object,Object> values)
values - the valuespublic Object getValueForIdentifier(Object identifier) throws IllegalArgumentException
getValueForIdentifier in interface DomainIllegalArgumentException - if identifier is not a valid keypublic void accept(DomainVisitor visitor)
Copyright © 1999–2013 CodeLutin. All rights reserved.