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 CharSequence
toString
in class Object
public char charAt(int index)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
Copyright © 2013. All Rights Reserved.