@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ResponseMetadataIF"}) @Immutable public final class ResponseMetadata extends Object implements ResponseMetadataIF
ResponseMetadataIF.
Use the builder to create immutable instances:
ResponseMetadata.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseMetadata.Builder
Builds instances of type
ResponseMetadata. |
| Modifier and Type | Method and Description |
|---|---|
static ResponseMetadata.Builder |
builder()
Creates a builder for
ResponseMetadata. |
static ResponseMetadata |
copyOf(ResponseMetadataIF instance)
Creates an immutable copy of a
ResponseMetadataIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ResponseMetadata that have equal attribute values. |
Optional<String> |
getNextCursor() |
int |
hashCode()
Computes a hash code from attributes:
nextCursor. |
String |
toString()
Prints the immutable value
ResponseMetadata with attribute values. |
ResponseMetadata |
withNextCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
nextCursor attribute. |
ResponseMetadata |
withNextCursor(String value)
Copy the current immutable object by setting a present value for the optional
nextCursor attribute. |
public Optional<String> getNextCursor()
getNextCursor in interface ResponseMetadataIFnextCursor attributepublic final ResponseMetadata withNextCursor(@Nullable String value)
nextCursor attribute.value - The value for nextCursor, null is accepted as java.util.Optional.empty()this objectpublic final ResponseMetadata withNextCursor(Optional<String> optional)
nextCursor attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for nextCursorthis objectpublic boolean equals(@Nullable Object another)
ResponseMetadata that have equal attribute values.public int hashCode()
nextCursor.public String toString()
ResponseMetadata with attribute values.public static ResponseMetadata copyOf(ResponseMetadataIF instance)
ResponseMetadataIF 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 ResponseMetadata.Builder builder()
ResponseMetadata.Copyright © 2019. All rights reserved.