@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ScimName"}) @Immutable public final class ImmutableScimName extends ScimName
ScimName.
Use the builder to create immutable instances:
ImmutableScimName.builder().
Use the static factory method to create immutable instances:
ImmutableScimName.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableScimName.Builder
Builds instances of type
ImmutableScimName. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableScimName.Builder |
builder()
Creates a builder for
ImmutableScimName. |
static ImmutableScimName |
copyOf(ScimName instance)
Creates an immutable copy of a
ScimName value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableScimName that have equal attribute values. |
String |
getFamilyName() |
String |
getFormattedName() |
String |
getGivenName() |
int |
hashCode()
Computes a hash code from attributes:
familyName, givenName, formattedName. |
static ImmutableScimName |
of(String familyName,
String givenName,
String formattedName)
Construct a new immutable
ScimName instance. |
String |
toString()
Prints the immutable value
ScimName with attribute values. |
ImmutableScimName |
withFamilyName(String value)
Copy the current immutable object by setting a value for the
familyName attribute. |
ImmutableScimName |
withFormattedName(String value)
Copy the current immutable object by setting a value for the
formattedName attribute. |
ImmutableScimName |
withGivenName(String value)
Copy the current immutable object by setting a value for the
givenName attribute. |
@Nullable public String getFamilyName()
getFamilyName in class ScimNamefamilyName attribute@Nullable public String getGivenName()
getGivenName in class ScimNamegivenName attribute@Nullable public String getFormattedName()
getFormattedName in class ScimNameformattedName attributepublic final ImmutableScimName withFamilyName(@Nullable String value)
familyName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for familyName (can be null)this objectpublic final ImmutableScimName withGivenName(@Nullable String value)
givenName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for givenName (can be null)this objectpublic final ImmutableScimName withFormattedName(@Nullable String value)
formattedName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for formattedName (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableScimName that have equal attribute values.public int hashCode()
familyName, givenName, formattedName.public String toString()
ScimName with attribute values.public static ImmutableScimName of(@Nullable String familyName, @Nullable String givenName, @Nullable String formattedName)
ScimName instance.familyName - The value for the familyName attributegivenName - The value for the givenName attributeformattedName - The value for the formattedName attributepublic static ImmutableScimName copyOf(ScimName instance)
ScimName value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableScimName.Builder builder()
ImmutableScimName.Copyright © 2016 Atlassian. All rights reserved.