public class SingleCharSequence extends Object implements CharSequence
| Constructor and Description |
|---|
SingleCharSequence(char pwChar,
int pwLength)
Create a new password character sequence.
|
| Modifier and Type | Method and 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.
|
CharSequence |
subSequence(int start,
int end) |
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 lengthpublic String toString()
toString in interface CharSequencetoString in class Objectpublic char charAt(int index)
charAt in interface CharSequencepublic int length()
length in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequenceCopyright © 2013. All Rights Reserved.