Package io.resys.thena.spi
Class ImmutableTxScope
java.lang.Object
io.resys.thena.spi.ImmutableTxScope
- All Implemented Interfaces:
TenantDataSource.TxScope
@Generated(from="TenantDataSource.TxScope",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableTxScope
extends Object
implements TenantDataSource.TxScope
Immutable implementation of
TenantDataSource.TxScope.
Use the builder to create immutable instances:
ImmutableTxScope.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableTxScope.Builderbuilder()Creates a builder forImmutableTxScope.static ImmutableTxScopecopyOf(TenantDataSource.TxScope instance) Creates an immutable copy of aTenantDataSource.TxScopevalue.booleanThis instance is equal to all instances ofImmutableTxScopethat have equal attribute values.inthashCode()Computes a hash code from attributes:tenantId,commitAuthor,commitMessage.toString()Prints the immutable valueTxScopewith attribute values.final ImmutableTxScopewithCommitAuthor(String value) Copy the current immutable object by setting a value for thecommitAuthorattribute.final ImmutableTxScopewithCommitMessage(String value) Copy the current immutable object by setting a value for thecommitMessageattribute.final ImmutableTxScopewithTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.
-
Method Details
-
getTenantId
- Specified by:
getTenantIdin interfaceTenantDataSource.TxScope- Returns:
- The value of the
tenantIdattribute
-
getCommitAuthor
- Specified by:
getCommitAuthorin interfaceTenantDataSource.TxScope- Returns:
- The value of the
commitAuthorattribute
-
getCommitMessage
- Specified by:
getCommitMessagein interfaceTenantDataSource.TxScope- Returns:
- The value of the
commitMessageattribute
-
withTenantId
Copy the current immutable object by setting a value for thetenantIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantId- Returns:
- A modified copy or the
thisobject
-
withCommitAuthor
Copy the current immutable object by setting a value for thecommitAuthorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitAuthor- Returns:
- A modified copy or the
thisobject
-
withCommitMessage
Copy the current immutable object by setting a value for thecommitMessageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitMessage- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableTxScopethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:tenantId,commitAuthor,commitMessage. -
toString
Prints the immutable valueTxScopewith attribute values. -
copyOf
Creates an immutable copy of aTenantDataSource.TxScopevalue. 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 TxScope instance
-
builder
Creates a builder forImmutableTxScope.ImmutableTxScope.builder() .tenantId(String) // requiredtenantId.commitAuthor(String) // requiredcommitAuthor.commitMessage(String) // requiredcommitMessage.build();- Returns:
- A new ImmutableTxScope builder
-