Interface Writable<W extends Writable<W>>
-
- All Known Subinterfaces:
Archive<W>,Directory<W>,File<W>,IndexDirectory<T,W>,IndexingDecorator<T,W>,SigningDecorator<W>
- All Known Implementing Classes:
AbstractIndexingDecorator,AbstractSigningDecorator,AppConfigurationDirectory,AppConfigurationSigningDecorator,ArchiveDecorator,ArchiveOnDisk,DateIndexingDecorator,DiagnosisKeysCountryDirectory,DiagnosisKeysDateDirectory,DiagnosisKeysDirectory,DiagnosisKeysHourDirectory,DiagnosisKeySigningDecorator,DirectoryDecorator,DirectoryOnDisk,FileOnDisk,FileOnDiskWithChecksum,HourIndexingDecorator,IndexDirectoryDecorator,IndexDirectoryOnDisk,IndexingDecoratorOnDisk,SigningDecoratorOnDisk,TemporaryExposureKeyExportFile,WritableOnDisk
public interface Writable<W extends Writable<W>>Something that has a name, a parent and that can be written to somewhere.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Returns the name of thisWritable.Directory<W>getParent()Returns the parent of thisWritable, ornullif it doesn't have a parent.booleanisArchive()booleanisDirectory()booleanisFile()voidprepare(ImmutableStack<Object> indices)Does preparation work for thisWritable(e.g.voidsetParent(Directory<W> parent)Sets the parent of thisWritable.voidwrite()Writes thisWritablesomewhere.
-
-
-
Method Detail
-
write
void write()
Writes thisWritablesomewhere.
-
getParent
Directory<W> getParent()
Returns the parent of thisWritable, ornullif it doesn't have a parent.
-
prepare
void prepare(ImmutableStack<Object> indices)
Does preparation work for thisWritable(e.g. calculate data, setup structures, etc.). Must be called before writing.
-
isFile
boolean isFile()
-
isDirectory
boolean isDirectory()
-
isArchive
boolean isArchive()
-
-