Package org.techbd.util
Record Class ArtifactStore.LocalFsPersistence
java.lang.Object
java.lang.Record
org.techbd.util.ArtifactStore.LocalFsPersistence
- All Implemented Interfaces:
ArtifactStore.PersistenceStrategy
- Enclosing class:
ArtifactStore
public static record ArtifactStore.LocalFsPersistence(Map<String,Object> initArgs, InterpolateEngine ie)
extends Record
implements ArtifactStore.PersistenceStrategy
-
Field Summary
Fields inherited from interface org.techbd.util.ArtifactStore.PersistenceStrategy
REQUIRED_ARG_ARTIFACT_ID
-
Constructor Summary
ConstructorDescriptionLocalFsPersistence
(Map<String, Object> initArgs, InterpolateEngine ie) Creates an instance of aLocalFsPersistence
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.ie()
Returns the value of theie
record component.initArgs()
Returns the value of theinitArgs
record component.void
persist
(@NotNull ArtifactStore.Artifact artifact, @NotNull Optional<ArtifactStore.PersistenceReporter> reporter) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
ARG_FS_PATH
- See Also:
-
FS_PATH_DEFAULT
-
-
Constructor Details
-
LocalFsPersistence
Creates an instance of aLocalFsPersistence
record class.- Parameters:
initArgs
- the value for theinitArgs
record componentie
- the value for theie
record component
-
-
Method Details
-
persist
public void persist(@NotNull @NotNull ArtifactStore.Artifact artifact, @NotNull @NotNull Optional<ArtifactStore.PersistenceReporter> reporter) - Specified by:
persist
in interfaceArtifactStore.PersistenceStrategy
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
initArgs
Returns the value of theinitArgs
record component.- Returns:
- the value of the
initArgs
record component
-
ie
Returns the value of theie
record component.- Returns:
- the value of the
ie
record component
-