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 class
UserId.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString(boolean ignoreEmptyValues)
Returns a string representation of the object.char
charAt(int i)
boolean
equals(Object o)
String
getComment()
String
getEmail()
String
getName()
int
hashCode()
int
length()
static UserId
nameAndEmail(String name, String email)
static UserId.Builder
newBuilder()
static UserId
onlyEmail(String email)
CharSequence
subSequence(int i, int i1)
UserId.Builder
toBuilder()
String
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
-
-
-
-
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:
length
in interfaceCharSequence
-
charAt
public char charAt(int i)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
@Nonnull public CharSequence subSequence(int i, int i1)
- Specified by:
subSequence
in interfaceCharSequence
-
toString
@Nonnull public String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in 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.
-
-