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
,DateAggregatingDecorator
,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 String
getName()
Returns the name of thisWritable
.Directory<W>
getParent()
Returns the parent of thisWritable
, ornull
if it doesn't have a parent.boolean
isArchive()
boolean
isDirectory()
boolean
isFile()
void
prepare(ImmutableStack<Object> indices)
Does preparation work for thisWritable
(e.g.void
setParent(Directory<W> parent)
Sets the parent of thisWritable
.void
write()
Writes thisWritable
somewhere.
-
-
-
Method Detail
-
write
void write()
Writes thisWritable
somewhere.
-
getParent
Directory<W> getParent()
Returns the parent of thisWritable
, ornull
if 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()
-
-