Package org.pgpainless.key.util
Class UserId
java.lang.Object
org.pgpainless.key.util.UserId
- All Implemented Interfaces:
CharSequence
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionasString
(boolean ignoreEmptyValues) Returns a string representation of the object.char
charAt
(int i) boolean
getEmail()
getName()
int
hashCode()
int
length()
static UserId
nameAndEmail
(String name, String email) static UserId.Builder
static UserId
subSequence
(int i, int i1) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Method Details
-
onlyEmail
-
nameAndEmail
-
newBuilder
-
toBuilder
-
getName
-
getComment
-
getEmail
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int i) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
asString
Returns a string representation of the object.- Parameters:
ignoreEmptyValues
- Flag which indicates that empty string values should not be outputted.- Returns:
- a string representation of the object.
-
equals
-
hashCode
public int hashCode()
-