Package io.resys.hdes.client.spi
Class ImmutableGitConfig
java.lang.Object
io.resys.hdes.client.spi.ImmutableGitConfig
- All Implemented Interfaces:
GitConfig
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGitConfig extends Object implements GitConfig
Immutable implementation of
GitConfig.
Use the builder to create immutable instances:
ImmutableGitConfig.builder().
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGitConfig.BuilderBuilds instances of typeImmutableGitConfig.Nested classes/interfaces inherited from interface io.resys.hdes.client.spi.GitConfig
GitConfig.GitEntry, GitConfig.GitFile, GitConfig.GitFileReload, GitConfig.GitInit, GitConfig.GitSerializer -
Method Summary
Modifier and Type Method Description static ImmutableGitConfig.Builderbuilder()Creates a builder forImmutableGitConfig.static ImmutableGitConfigcopyOf(GitConfig instance)Creates an immutable copy of aGitConfigvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGitConfigthat have equal attribute values.StringgetAbsoluteAssetsPath()StringgetAbsolutePath()StringgetAssetsPath()IntegergetCacheHeap()org.ehcache.CacheManagergetCacheManager()StringgetCacheName()org.eclipse.jgit.api.TransportConfigCallbackgetCallback()org.eclipse.jgit.api.GitgetClient()HdesStore.HdesCredsSuppliergetCreds()GitConfig.GitInitgetInit()StoreEntityLocationgetLocation()PathgetParentPath()GitConfig.GitSerializergetSerializer()inthashCode()Computes a hash code from attributes:init,location,serializer,creds,cacheManager,cacheName,cacheHeap,assetsPath,parentPath,absolutePath,absoluteAssetsPath,callback,client.StringtoString()Prints the immutable valueGitConfigwith attribute values.ImmutableGitConfigwithAbsoluteAssetsPath(String value)Copy the current immutable object by setting a value for theabsoluteAssetsPathattribute.ImmutableGitConfigwithAbsolutePath(String value)Copy the current immutable object by setting a value for theabsolutePathattribute.ImmutableGitConfigwithAssetsPath(String value)Copy the current immutable object by setting a value for theassetsPathattribute.ImmutableGitConfigwithCacheHeap(Integer value)Copy the current immutable object by setting a value for thecacheHeapattribute.ImmutableGitConfigwithCacheManager(org.ehcache.CacheManager value)Copy the current immutable object by setting a value for thecacheManagerattribute.ImmutableGitConfigwithCacheName(String value)Copy the current immutable object by setting a value for thecacheNameattribute.ImmutableGitConfigwithCallback(org.eclipse.jgit.api.TransportConfigCallback value)Copy the current immutable object by setting a value for thecallbackattribute.ImmutableGitConfigwithClient(org.eclipse.jgit.api.Git value)Copy the current immutable object by setting a value for theclientattribute.ImmutableGitConfigwithCreds(HdesStore.HdesCredsSupplier value)Copy the current immutable object by setting a value for thecredsattribute.ImmutableGitConfigwithInit(GitConfig.GitInit value)Copy the current immutable object by setting a value for theinitattribute.ImmutableGitConfigwithLocation(StoreEntityLocation value)Copy the current immutable object by setting a value for thelocationattribute.ImmutableGitConfigwithParentPath(Path value)Copy the current immutable object by setting a value for theparentPathattribute.ImmutableGitConfigwithSerializer(GitConfig.GitSerializer value)Copy the current immutable object by setting a value for theserializerattribute.
-
Method Details
-
getInit
-
getLocation
- Specified by:
getLocationin interfaceGitConfig- Returns:
- The value of the
locationattribute
-
getSerializer
- Specified by:
getSerializerin interfaceGitConfig- Returns:
- The value of the
serializerattribute
-
getCreds
-
getCacheManager
public org.ehcache.CacheManager getCacheManager()- Specified by:
getCacheManagerin interfaceGitConfig- Returns:
- The value of the
cacheManagerattribute
-
getCacheName
- Specified by:
getCacheNamein interfaceGitConfig- Returns:
- The value of the
cacheNameattribute
-
getCacheHeap
- Specified by:
getCacheHeapin interfaceGitConfig- Returns:
- The value of the
cacheHeapattribute
-
getAssetsPath
- Specified by:
getAssetsPathin interfaceGitConfig- Returns:
- The value of the
assetsPathattribute
-
getParentPath
- Specified by:
getParentPathin interfaceGitConfig- Returns:
- The value of the
parentPathattribute
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfaceGitConfig- Returns:
- The value of the
absolutePathattribute
-
getAbsoluteAssetsPath
- Specified by:
getAbsoluteAssetsPathin interfaceGitConfig- Returns:
- The value of the
absoluteAssetsPathattribute
-
getCallback
public org.eclipse.jgit.api.TransportConfigCallback getCallback()- Specified by:
getCallbackin interfaceGitConfig- Returns:
- The value of the
callbackattribute
-
getClient
public org.eclipse.jgit.api.Git getClient() -
withInit
Copy the current immutable object by setting a value for theinitattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for init- Returns:
- A modified copy of the
thisobject
-
withLocation
Copy the current immutable object by setting a value for thelocationattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for location- Returns:
- A modified copy of the
thisobject
-
withSerializer
Copy the current immutable object by setting a value for theserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serializer- Returns:
- A modified copy of the
thisobject
-
withCreds
Copy the current immutable object by setting a value for thecredsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creds- Returns:
- A modified copy of the
thisobject
-
withCacheManager
Copy the current immutable object by setting a value for thecacheManagerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cacheManager- Returns:
- A modified copy of the
thisobject
-
withCacheName
Copy the current immutable object by setting a value for thecacheNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cacheName- Returns:
- A modified copy of the
thisobject
-
withCacheHeap
Copy the current immutable object by setting a value for thecacheHeapattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for cacheHeap- Returns:
- A modified copy of the
thisobject
-
withAssetsPath
Copy the current immutable object by setting a value for theassetsPathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for assetsPath- Returns:
- A modified copy of the
thisobject
-
withParentPath
Copy the current immutable object by setting a value for theparentPathattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parentPath- Returns:
- A modified copy of the
thisobject
-
withAbsolutePath
Copy the current immutable object by setting a value for theabsolutePathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for absolutePath- Returns:
- A modified copy of the
thisobject
-
withAbsoluteAssetsPath
Copy the current immutable object by setting a value for theabsoluteAssetsPathattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for absoluteAssetsPath- Returns:
- A modified copy of the
thisobject
-
withCallback
Copy the current immutable object by setting a value for thecallbackattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for callback- Returns:
- A modified copy of the
thisobject
-
withClient
Copy the current immutable object by setting a value for theclientattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for client- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableGitConfigthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:init,location,serializer,creds,cacheManager,cacheName,cacheHeap,assetsPath,parentPath,absolutePath,absoluteAssetsPath,callback,client. -
toString
Prints the immutable valueGitConfigwith attribute values. -
copyOf
Creates an immutable copy of aGitConfigvalue. 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 GitConfig instance
-
builder
Creates a builder forImmutableGitConfig.ImmutableGitConfig.builder() .init(io.resys.hdes.client.spi.GitConfig.GitInit) // requiredinit.location(io.resys.hdes.client.spi.staticresources.StoreEntityLocation) // requiredlocation.serializer(io.resys.hdes.client.spi.GitConfig.GitSerializer) // requiredserializer.creds(io.resys.hdes.client.api.HdesStore.HdesCredsSupplier) // requiredcreds.cacheManager(org.ehcache.CacheManager) // requiredcacheManager.cacheName(String) // requiredcacheName.cacheHeap(Integer) // requiredcacheHeap.assetsPath(String) // requiredassetsPath.parentPath(java.nio.file.Path) // requiredparentPath.absolutePath(String) // requiredabsolutePath.absoluteAssetsPath(String) // requiredabsoluteAssetsPath.callback(org.eclipse.jgit.api.TransportConfigCallback) // requiredcallback.client(org.eclipse.jgit.api.Git) // requiredclient.build();- Returns:
- A new ImmutableGitConfig builder
-