Package org.projectnessie.model
Class ImmutableDelete
- java.lang.Object
-
- org.projectnessie.model.ImmutableDelete
-
- All Implemented Interfaces:
Operation,Operation.Delete
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDelete extends Object implements Operation.Delete
Immutable implementation ofOperation.Delete.Use the builder to create immutable instances:
ImmutableDelete.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDelete.BuilderBuilds instances of typeImmutableDelete.-
Nested classes/interfaces inherited from interface org.projectnessie.model.Operation
Operation.Delete, Operation.Put, Operation.Unchanged
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDelete.Builderbuilder()Creates a builder forImmutableDelete.static ImmutableDeletecopyOf(Operation.Delete instance)Creates an immutable copy of aOperation.Deletevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDeletethat have equal attribute values.ContentKeygetKey()inthashCode()Computes a hash code from attributes:key.StringtoString()Prints the immutable valueDeletewith attribute values.ImmutableDeletewithKey(ContentKey value)Copy the current immutable object by setting a value for thekeyattribute.
-
-
-
Method Detail
-
getKey
public ContentKey getKey()
-
withKey
public final ImmutableDelete withKey(ContentKey value)
Copy the current immutable object by setting a value for thekeyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for key- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableDeletethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:key.
-
toString
public String toString()
Prints the immutable valueDeletewith attribute values.
-
copyOf
public static ImmutableDelete copyOf(Operation.Delete instance)
Creates an immutable copy of aOperation.Deletevalue. 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 Delete instance
-
builder
public static ImmutableDelete.Builder builder()
Creates a builder forImmutableDelete.ImmutableDelete.builder() .key(org.projectnessie.model.ContentKey) // requiredkey.build();- Returns:
- A new ImmutableDelete builder
-
-