|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vmutil.options.Option org.vmutil.options.PagesOption
public class PagesOption
A memory option that stores values as a whole number of pages.
Field Summary | |
---|---|
protected int |
defaultValue
|
protected int |
value
|
Fields inherited from class org.vmutil.options.Option |
---|
ADDRESS_OPTION, BOOLEAN_OPTION, ENUM_OPTION, FLOAT_OPTION, INT_OPTION, MICROSECONDS_OPTION, PAGES_OPTION, RAW, READABLE, set, STRING_OPTION, XML |
Constructor Summary | |
---|---|
protected |
PagesOption(OptionSet set,
String name,
String desc,
int defaultPages)
Create a new pages option. |
Method Summary | |
---|---|
Extent |
getBytes()
Read the current value of the option in bytes. |
Extent |
getDefaultBytes()
Read the default value of the option in bytes. |
int |
getDefaultPages()
Read the default value of the option in pages. |
int |
getPages()
Read the current value of the option in pages. |
void |
setBytes(Extent value)
Update the value of the option, echoing the change if logChanges is set. |
void |
setDefaultPages(int value)
Modify the default value of the option. |
void |
setPages(int pages)
Update the value of the option, echoing the change if logChanges is set. |
Methods inherited from class org.vmutil.options.Option |
---|
fail, failIf, getDescription, getKey, getName, getNext, getType, setNext, validate, warn, warnIf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int defaultValue
protected int value
Constructor Detail |
---|
protected PagesOption(OptionSet set, String name, String desc, int defaultPages)
set
- The option set this option belongs to.name
- The space separated name for the option.desc
- The purpose of the optiondefaultPages
- The default value of the option.Method Detail |
---|
public int getPages()
public Extent getBytes()
public Extent getDefaultBytes()
public int getDefaultPages()
public void setBytes(Extent value)
value
- The new value for the option.public void setPages(int pages)
pages
- The new value for the option.public void setDefaultPages(int value)
value
- The new default value for the option.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |