public interface CommandHistory
Modifier and Type | Method and Description |
---|---|
List<String> |
asList()
Returns the history as a list of strings.
|
void |
clear()
Clears history.
|
int |
getMaxSize()
The maximum length of the history log.
|
boolean |
isUseHistory()
Returns a boolean indicating whether the history is enabled or not.
|
void |
setMaxSize(int maxSize)
Sets the maximum length of the history log.
|
void |
setUseHistory(boolean useHistory)
Enables or disables history.
|
List<String> asList()
boolean isUseHistory()
void setUseHistory(boolean useHistory)
useHistory
- true enables history, false disables it.void clear()
void setMaxSize(int maxSize)
maxSize
- maximum length of the history logint getMaxSize()
Copyright © 2015 JBoss by Red Hat. All rights reserved.