Package org.projectnessie.model
Class ImmutableIcebergTable
- java.lang.Object
-
- org.projectnessie.model.Contents
-
- org.projectnessie.model.IcebergTable
-
- org.projectnessie.model.ImmutableIcebergTable
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableIcebergTable extends IcebergTable
Immutable implementation ofIcebergTable.Use the builder to create immutable instances:
ImmutableIcebergTable.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIcebergTable.BuilderBuilds instances of typeImmutableIcebergTable.-
Nested classes/interfaces inherited from class org.projectnessie.model.Contents
Contents.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableIcebergTable.Builderbuilder()Creates a builder forImmutableIcebergTable.static ImmutableIcebergTablecopyOf(IcebergTable instance)Creates an immutable copy of aIcebergTablevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableIcebergTablethat have equal attribute values.StringgetId()Unique id for this object.StringgetMetadataLocation()inthashCode()Returns a precomputed-on-construction hash code from attributes:id,metadataLocation.StringtoString()Prints the immutable valueIcebergTablewith attribute values.ImmutableIcebergTablewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableIcebergTablewithMetadataLocation(String value)Copy the current immutable object by setting a value for themetadataLocationattribute.-
Methods inherited from class org.projectnessie.model.IcebergTable
of
-
-
-
-
Method Detail
-
getId
public String getId()
Unique id for this object.This id is unique for the entire lifetime of this Contents object and persists across renames. Two contents with the same key will have different id.
-
getMetadataLocation
public String getMetadataLocation()
- Specified by:
getMetadataLocationin classIcebergTable- Returns:
- The value of the
metadataLocationattribute
-
withId
public final ImmutableIcebergTable withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withMetadataLocation
public final ImmutableIcebergTable withMetadataLocation(String value)
Copy the current immutable object by setting a value for themetadataLocationattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadataLocation- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableIcebergTablethat have equal attribute values.
-
hashCode
public int hashCode()
Returns a precomputed-on-construction hash code from attributes:id,metadataLocation.
-
toString
public String toString()
Prints the immutable valueIcebergTablewith attribute values.
-
copyOf
public static ImmutableIcebergTable copyOf(IcebergTable instance)
Creates an immutable copy of aIcebergTablevalue. 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 IcebergTable instance
-
builder
public static ImmutableIcebergTable.Builder builder()
Creates a builder forImmutableIcebergTable.ImmutableIcebergTable.builder() .id(String) // optionalid.metadataLocation(String) // requiredmetadataLocation.build();- Returns:
- A new ImmutableIcebergTable builder
-
-