Package one.microstream.afs.types
Class AFile.Default
java.lang.Object
one.microstream.afs.types.AItem.Base
one.microstream.afs.types.AItem.Abstract
one.microstream.afs.types.AFile.Default
- Enclosing interface:
- AFile
public static class AFile.Default extends AItem.Abstract implements AFile
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.types.AFile
AFile.Default, AFile.Observer, AFile.Wrapper
Nested classes/interfaces inherited from interface one.microstream.afs.types.AItem
AItem.Abstract, AItem.Base, AItem.Wrapper
-
Constructor Summary
Constructors Modifier Constructor Description protected
Default(ADirectory parent, String identifier)
-
Method Summary
Modifier and Type Method Description AFileSystem
fileSystem()
<C extends Consumer<? super AFile.Observer>>
CiterateObservers(C logic)
ADirectory
parent()
The directory (identifying container) in which this item is located and in which no other item can have the sameAItem.identifier()
as this item.boolean
registerObserver(AFile.Observer observer)
boolean
removeObserver(AFile.Observer observer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface one.microstream.afs.types.AFile
defaultUser, ensureExists, exists, isEmpty, isUsed, name, size, toPath, toPathString, tryUseReading, tryUseReading, tryUseWriting, tryUseWriting, type, useReading, useReading, useWriting, useWriting
-
Constructor Details
-
Method Details
-
parent
Description copied from interface:AItem
The directory (identifying container) in which this item is located and in which no other item can have the sameAItem.identifier()
as this item.- Specified by:
parent
in interfaceAItem
- Returns:
- the item's parent directory.
- See Also:
AItem.identifier()
,AItem.toPathString()
-
fileSystem
- Specified by:
fileSystem
in interfaceAItem
-
registerObserver
- Specified by:
registerObserver
in interfaceAFile
-
removeObserver
- Specified by:
removeObserver
in interfaceAFile
-
iterateObservers
- Specified by:
iterateObservers
in interfaceAFile
-