Package org.projectnessie.model
Class ImmutableGetNamespacesResponse
- java.lang.Object
-
- org.projectnessie.model.ImmutableGetNamespacesResponse
-
- All Implemented Interfaces:
GetNamespacesResponse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGetNamespacesResponse extends Object implements GetNamespacesResponse
Immutable implementation ofGetNamespacesResponse.Use the builder to create immutable instances:
ImmutableGetNamespacesResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGetNamespacesResponse.BuilderBuilds instances of typeImmutableGetNamespacesResponse.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableGetNamespacesResponse.Builderbuilder()Creates a builder forImmutableGetNamespacesResponse.static ImmutableGetNamespacesResponsecopyOf(GetNamespacesResponse instance)Creates an immutable copy of aGetNamespacesResponsevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGetNamespacesResponsethat have equal attribute values.List<Namespace>getNamespaces()inthashCode()Computes a hash code from attributes:namespaces.StringtoString()Prints the immutable valueGetNamespacesResponsewith attribute values.ImmutableGetNamespacesResponsewithNamespaces(Iterable<? extends Namespace> elements)Copy the current immutable object with elements that replace the content ofnamespaces.ImmutableGetNamespacesResponsewithNamespaces(Namespace... elements)Copy the current immutable object with elements that replace the content ofnamespaces.
-
-
-
Method Detail
-
getNamespaces
public List<Namespace> getNamespaces()
- Specified by:
getNamespacesin interfaceGetNamespacesResponse- Returns:
- The value of the
namespacesattribute
-
withNamespaces
public final ImmutableGetNamespacesResponse withNamespaces(Namespace... elements)
Copy the current immutable object with elements that replace the content ofnamespaces.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withNamespaces
public final ImmutableGetNamespacesResponse withNamespaces(Iterable<? extends Namespace> elements)
Copy the current immutable object with elements that replace the content ofnamespaces. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of namespaces elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableGetNamespacesResponsethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:namespaces.
-
toString
public String toString()
Prints the immutable valueGetNamespacesResponsewith attribute values.
-
copyOf
public static ImmutableGetNamespacesResponse copyOf(GetNamespacesResponse instance)
Creates an immutable copy of aGetNamespacesResponsevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable GetNamespacesResponse instance
-
builder
public static ImmutableGetNamespacesResponse.Builder builder()
Creates a builder forImmutableGetNamespacesResponse.ImmutableGetNamespacesResponse.builder() .addNamespaces|addAllNamespaces(org.projectnessie.model.Namespace) //namespaceselements .build();- Returns:
- A new ImmutableGetNamespacesResponse builder
-
-