|
Josh Native console access wrapper for Java |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.yifanlu.Josh.ConsoleHistoryInfo
public class ConsoleHistoryInfo
Contains information about the console history.
Josh.getConsoleHistoryInfo(),
Josh.setConsoleHistoryInfo(com.yifanlu.Josh.ConsoleHistoryInfo)| Field Summary | |
|---|---|
static int |
HISTORY_NO_DUP_FLAG
Flag value: Duplicate entries will not be stored in the history buffer. |
| Constructor Summary | |
|---|---|
ConsoleHistoryInfo(int historyBufferSize,
int numberOfHistoryBuffers,
int flags)
Creates a new console history infomation. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object anObject)
Compares two Objects, if both are ConsoleHistoryInfo and have the same values, they are equal. |
int |
getFlags()
Gets the history buffer flags. |
int |
getHistoryBufferSize()
Gets the size of the history buffer. |
int |
getNumberOfHistoryBuffers()
Gets the number of history buffers. |
int |
hashCode()
Returns a hash code. |
void |
setFlags(int flags)
Sets the history buffer flags. |
void |
setHistoryBufferSize(int historyBufferSize)
Sets the size of the history buffer. |
void |
setNumberOfHistoryBuffers(int numberOfHistoryBuffers)
Sets the number of history buffers. |
java.lang.String |
toString()
A String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HISTORY_NO_DUP_FLAG
| Constructor Detail |
|---|
public ConsoleHistoryInfo(int historyBufferSize,
int numberOfHistoryBuffers,
int flags)
historyBufferSize - The number of commands kept in each history buffer.numberOfHistoryBuffers - The number of history buffers kept for this console process.flags - Set using constants defined in this class.| Method Detail |
|---|
public int getHistoryBufferSize()
public int getNumberOfHistoryBuffers()
public int getFlags()
public void setHistoryBufferSize(int historyBufferSize)
historyBufferSize - The number of commands kept in each history buffer.public void setNumberOfHistoryBuffers(int numberOfHistoryBuffers)
numberOfHistoryBuffers - The number of history buffers kept for this console process.public void setFlags(int flags)
flags - The flags as an int.public boolean equals(java.lang.Object anObject)
equals in class java.lang.ObjectanObject - Another ConsoleHistoryInfo object.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
String representation of this object.
toString in class java.lang.Object
|
Copyright © 2010 Yifan Lu | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||