Package org.projectnessie.model
Class ImmutableMultiGetContentsResponse
- java.lang.Object
-
- org.projectnessie.model.ImmutableMultiGetContentsResponse
-
- All Implemented Interfaces:
MultiGetContentsResponse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMultiGetContentsResponse extends Object implements MultiGetContentsResponse
Immutable implementation ofMultiGetContentsResponse.Use the builder to create immutable instances:
ImmutableMultiGetContentsResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableMultiGetContentsResponse.BuilderBuilds instances of typeImmutableMultiGetContentsResponse.-
Nested classes/interfaces inherited from interface org.projectnessie.model.MultiGetContentsResponse
MultiGetContentsResponse.ContentsWithKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableMultiGetContentsResponse.Builderbuilder()Creates a builder forImmutableMultiGetContentsResponse.static ImmutableMultiGetContentsResponsecopyOf(MultiGetContentsResponse instance)Creates an immutable copy of aMultiGetContentsResponsevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableMultiGetContentsResponsethat have equal attribute values.List<MultiGetContentsResponse.ContentsWithKey>getContents()inthashCode()Returns a precomputed-on-construction hash code from attributes:contents.StringtoString()Prints the immutable valueMultiGetContentsResponsewith attribute values.ImmutableMultiGetContentsResponsewithContents(Iterable<? extends MultiGetContentsResponse.ContentsWithKey> elements)Copy the current immutable object with elements that replace the content ofcontents.ImmutableMultiGetContentsResponsewithContents(MultiGetContentsResponse.ContentsWithKey... elements)Copy the current immutable object with elements that replace the content ofcontents.
-
-
-
Method Detail
-
getContents
public List<MultiGetContentsResponse.ContentsWithKey> getContents()
- Specified by:
getContentsin interfaceMultiGetContentsResponse- Returns:
- The value of the
contentsattribute
-
withContents
public final ImmutableMultiGetContentsResponse withContents(MultiGetContentsResponse.ContentsWithKey... elements)
Copy the current immutable object with elements that replace the content ofcontents.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withContents
public final ImmutableMultiGetContentsResponse withContents(Iterable<? extends MultiGetContentsResponse.ContentsWithKey> elements)
Copy the current immutable object with elements that replace the content ofcontents. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of contents elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableMultiGetContentsResponsethat have equal attribute values.
-
hashCode
public int hashCode()
Returns a precomputed-on-construction hash code from attributes:contents.
-
toString
public String toString()
Prints the immutable valueMultiGetContentsResponsewith attribute values.
-
copyOf
public static ImmutableMultiGetContentsResponse copyOf(MultiGetContentsResponse instance)
Creates an immutable copy of aMultiGetContentsResponsevalue. 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 MultiGetContentsResponse instance
-
builder
public static ImmutableMultiGetContentsResponse.Builder builder()
Creates a builder forImmutableMultiGetContentsResponse.ImmutableMultiGetContentsResponse.builder() .addContents|addAllContents(org.projectnessie.model.MultiGetContentsResponse.ContentsWithKey) //contentselements .build();- Returns:
- A new ImmutableMultiGetContentsResponse builder
-
-