java.lang.CharSequencepublic class SingleCharSequence
extends java.lang.Object
implements java.lang.CharSequence
| Constructor | Description |
|---|---|
SingleCharSequence(char pwChar,
int pwLength) |
Create a new password character sequence.
|
| Modifier and Type | Method | Description |
|---|---|---|
char |
charAt(int index) |
|
char |
getSingleChar() |
Get the character that is used to hide the password.
|
int |
length() |
|
void |
setLength(int newLength) |
Set the new length of the single character sequence.
|
void |
setSingleChar(char newChar) |
Set the new single character.
|
java.lang.CharSequence |
subSequence(int start,
int end) |
|
java.lang.String |
toString() |
public SingleCharSequence(char pwChar,
int pwLength)
pwChar - the password characterpwLength - the length of the sequencepublic void setSingleChar(char newChar)
newChar - the new single characterpublic char getSingleChar()
public void setLength(int newLength)
newLength - the new length@Nonnull public java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic char charAt(int index)
charAt in interface java.lang.CharSequencepublic int length()
length in interface java.lang.CharSequence@Nonnull
public java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequenceCopyright © 2018. All rights reserved.