Package org.pgpainless.key.util
Class UserId
- java.lang.Object
-
- org.pgpainless.key.util.UserId
-
- All Implemented Interfaces:
CharSequence
public final class UserId extends Object implements CharSequence
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserId.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString(boolean ignoreEmptyValues)Returns a string representation of the object.charcharAt(int i)booleanequals(Object o)StringgetComment()StringgetEmail()StringgetName()inthashCode()intlength()static UserIdnameAndEmail(String name, String email)static UserId.BuildernewBuilder()static UserIdonlyEmail(String email)CharSequencesubSequence(int i, int i1)UserId.BuildertoBuilder()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
nameAndEmail
public static UserId nameAndEmail(String name, String email)
-
newBuilder
public static UserId.Builder newBuilder()
-
toBuilder
public UserId.Builder toBuilder()
-
getComment
public String getComment()
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int i)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
@Nonnull public CharSequence subSequence(int i, int i1)
- Specified by:
subSequencein interfaceCharSequence
-
toString
@Nonnull public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
asString
public String asString(boolean ignoreEmptyValues)
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.
-
-