| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <B extends Buffer> B | |
| public PromptEntry | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public int | |
| public boolean | |
| public void | |
| public void | |
| public String |
| echo | back to summary |
|---|---|
| private boolean echo | |
| prompt | back to summary |
|---|---|
| private String prompt | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PromptEntry | back to summary |
|---|---|
| public PromptEntry() | |
| PromptEntry | back to summary |
|---|---|
| public PromptEntry(String prompt, boolean echo) | |
| append | back to summary |
|---|---|
| public <B extends Buffer> B append(B buffer) | |
| clone | back to summary |
|---|---|
| public PromptEntry clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPrompt | back to summary |
|---|---|
| public String getPrompt() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEcho | back to summary |
|---|---|
| public boolean isEcho() | |
| setEcho | back to summary |
|---|---|
| public void setEcho(boolean echo) | |
| setPrompt | back to summary |
|---|---|
| public void setPrompt(String prompt) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |