|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.decisiondeck.xmcda_oo.structure.Alternative
public class Alternative
An alternative, or action, decision object, option, choice proposal, etc. Has a unique id (not null).
Objects of this type are immutable.
| Constructor Summary | |
|---|---|
Alternative(int id)
Builds an alternative with an integer id (which will also be available as string). |
|
Alternative(String id)
Builds an alternative (which is, by default, not fictitious). |
|
| Method Summary | |
|---|---|
int |
compareTo(Alternative a2)
|
boolean |
equals(Object obj)
|
String |
getId()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Alternative(int id)
id - the id as an integer.public Alternative(String id)
id - not null.| Method Detail |
|---|
public int compareTo(Alternative a2)
compareTo in interface Comparable<Alternative>public boolean equals(Object obj)
equals in class Objectpublic String getId()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||