|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.csail.sdg.alloy4.Util.IntPref
public static final class Util.IntPref
This reads and writes integer-valued Java persistent preferences.
Thread Safety: Safe.
| Constructor Summary | |
|---|---|
Util.IntPref(java.lang.String id,
int min,
int def,
int max)
Make a new IntPref object with the given id; you must ensure max >= min, but def does not have to be between min..max |
|
| Method Summary | |
|---|---|
int |
get()
Reads the value for this preference; if not set, we return the default value. |
void |
set(int value)
Sets the value for this preference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util.IntPref(java.lang.String id,
int min,
int def,
int max)
| Method Detail |
|---|
public void set(int value)
public int get()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||