@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ScimAttribute"}) @Immutable public final class ImmutableScimAttribute extends ScimAttribute
ScimAttribute.
Use the builder to create immutable instances:
ImmutableScimAttribute.builder().
Use the static factory method to create immutable instances:
ImmutableScimAttribute.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableScimAttribute.Builder
Builds instances of type
ImmutableScimAttribute. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableScimAttribute.Builder |
builder()
Creates a builder for
ImmutableScimAttribute. |
static ImmutableScimAttribute |
copyOf(ScimAttribute instance)
Creates an immutable copy of a
ScimAttribute value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableScimAttribute that have equal attribute values. |
String |
getKey() |
String |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
key, value. |
static ImmutableScimAttribute |
of(String key,
String value)
Construct a new immutable
ScimAttribute instance. |
String |
toString()
Prints the immutable value
ScimAttribute with attribute values. |
ImmutableScimAttribute |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableScimAttribute |
withValue(String value)
Copy the current immutable object by setting a value for the
value attribute. |
public String getKey()
getKey in class ScimAttributekey attributepublic String getValue()
getValue in class ScimAttributevalue attributepublic final ImmutableScimAttribute withKey(String value)
key attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for keythis objectpublic final ImmutableScimAttribute withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(@Nullable Object another)
ImmutableScimAttribute that have equal attribute values.public int hashCode()
key, value.public String toString()
ScimAttribute with attribute values.public static ImmutableScimAttribute of(String key, String value)
ScimAttribute instance.key - The value for the key attributevalue - The value for the value attributepublic static ImmutableScimAttribute copyOf(ScimAttribute instance)
ScimAttribute 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 ImmutableScimAttribute.Builder builder()
ImmutableScimAttribute.Copyright © 2016 Atlassian. All rights reserved.