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.charcharAt(int i) booleangetEmail()getName()inthashCode()intlength()static UserIdnameAndEmail(String name, String email) static UserId.Builderstatic UserIdsubSequence(int i, int i1) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Method Details
-
onlyEmail
-
nameAndEmail
-
newBuilder
-
toBuilder
-
getName
-
getComment
-
getEmail
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int i) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin 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()
-