Package io.resys.hdes.client.spi
Class ImmutableGitFileReload
java.lang.Object
io.resys.hdes.client.spi.ImmutableGitFileReload
- All Implemented Interfaces:
GitConfig.GitFileReload
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGitFileReload extends Object implements GitConfig.GitFileReload
Immutable implementation of
GitConfig.GitFileReload.
Use the builder to create immutable instances:
ImmutableGitFileReload.builder().
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGitFileReload.BuilderBuilds instances of typeImmutableGitFileReload. -
Method Summary
Modifier and Type Method Description static ImmutableGitFileReload.Builderbuilder()Creates a builder forImmutableGitFileReload.static ImmutableGitFileReloadcopyOf(GitConfig.GitFileReload instance)Creates an immutable copy of aGitConfig.GitFileReloadvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGitFileReloadthat have equal attribute values.AstBody.AstBodyTypegetBodyType()Optional<GitConfig.GitFile>getFile()StringgetId()StringgetTreeValue()inthashCode()Computes a hash code from attributes:treeValue,id,bodyType,file.StringtoString()Prints the immutable valueGitFileReloadwith attribute values.ImmutableGitFileReloadwithBodyType(AstBody.AstBodyType value)Copy the current immutable object by setting a value for thebodyTypeattribute.ImmutableGitFileReloadwithFile(GitConfig.GitFile value)Copy the current immutable object by setting a present value for the optionalfileattribute.ImmutableGitFileReloadwithFile(Optional<? extends GitConfig.GitFile> optional)Copy the current immutable object by setting an optional value for thefileattribute.ImmutableGitFileReloadwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableGitFileReloadwithTreeValue(String value)Copy the current immutable object by setting a value for thetreeValueattribute.
-
Method Details
-
getTreeValue
- Specified by:
getTreeValuein interfaceGitConfig.GitFileReload- Returns:
- The value of the
treeValueattribute
-
getId
- Specified by:
getIdin interfaceGitConfig.GitFileReload- Returns:
- The value of the
idattribute
-
getBodyType
- Specified by:
getBodyTypein interfaceGitConfig.GitFileReload- Returns:
- The value of the
bodyTypeattribute
-
getFile
- Specified by:
getFilein interfaceGitConfig.GitFileReload- Returns:
- The value of the
fileattribute
-
withTreeValue
Copy the current immutable object by setting a value for thetreeValueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for treeValue- Returns:
- A modified copy of the
thisobject
-
withId
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
-
withBodyType
Copy the current immutable object by setting a value for thebodyTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bodyType- Returns:
- A modified copy of the
thisobject
-
withFile
Copy the current immutable object by setting a present value for the optionalfileattribute.- Parameters:
value- The value for file- Returns:
- A modified copy of
thisobject
-
withFile
Copy the current immutable object by setting an optional value for thefileattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for file- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableGitFileReloadthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:treeValue,id,bodyType,file. -
toString
Prints the immutable valueGitFileReloadwith attribute values. -
copyOf
Creates an immutable copy of aGitConfig.GitFileReloadvalue. 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 GitFileReload instance
-
builder
Creates a builder forImmutableGitFileReload.ImmutableGitFileReload.builder() .treeValue(String) // requiredtreeValue.id(String) // requiredid.bodyType(io.resys.hdes.client.api.ast.AstBody.AstBodyType) // requiredbodyType.file(io.resys.hdes.client.spi.GitConfig.GitFile) // optionalfile.build();- Returns:
- A new ImmutableGitFileReload builder
-