Record Class Snapshot.CreateSnapshotData
java.lang.Object
java.lang.Record
repository.Snapshot.CreateSnapshotData
- Record Components:
connector- The IPFS proxy connector to userepository- The repository to useencryption- The encryption class to usegson- The gson class to usesource- The files and directories to upload
- Enclosing class:
Snapshot
public static record Snapshot.CreateSnapshotData(IPFSProxyConnector connector, Repository repository, Encryption encryption, com.google.gson.Gson gson, List<File> source, HashMap<String,Block> newBlocks)
extends Record
Wrapper that holds data for the creation of a snapshot
-
Constructor Summary
ConstructorsConstructorDescriptionCreateSnapshotData(IPFSProxyConnector connector, Repository repository, Encryption encryption, com.google.gson.Gson gson, List<File> source, HashMap<String, Block> newBlocks) Creates an instance of aCreateSnapshotDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectorrecord component.Returns the value of theencryptionrecord component.final booleanIndicates whether some other object is "equal to" this one.com.google.gson.Gsongson()Returns the value of thegsonrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenewBlocksrecord component.Returns the value of therepositoryrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateSnapshotData
public CreateSnapshotData(IPFSProxyConnector connector, Repository repository, Encryption encryption, com.google.gson.Gson gson, List<File> source, HashMap<String, Block> newBlocks) Creates an instance of aCreateSnapshotDatarecord class.- Parameters:
connector- the value for theconnectorrecord componentrepository- the value for therepositoryrecord componentencryption- the value for theencryptionrecord componentgson- the value for thegsonrecord componentsource- the value for thesourcerecord componentnewBlocks- the value for thenewBlocksrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
connector
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
encryption
Returns the value of theencryptionrecord component.- Returns:
- the value of the
encryptionrecord component
-
gson
-
source
-
newBlocks
-