Package one.microstream.afs
Class ADirectory.Abstract
java.lang.Object
one.microstream.afs.AItem.Base
one.microstream.afs.AItem.Abstract
one.microstream.afs.ADirectory.Abstract
- All Implemented Interfaces:
ADirectory
,AItem
,AResolving
- Direct Known Subclasses:
ADirectory.Default
,ARoot.Default
- Enclosing interface:
- ADirectory
public abstract static class ADirectory.Abstract extends AItem.Abstract implements ADirectory
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.ADirectory
ADirectory.Abstract, ADirectory.Default, ADirectory.Observer, ADirectory.Wrapper
Nested classes/interfaces inherited from interface one.microstream.afs.AItem
AItem.Abstract, AItem.Base, AItem.Wrapper
-
Constructor Summary
Constructors Constructor Description Abstract()
-
Method Summary
Modifier and Type Method Description <R> R
accessDirectories(Function<? super XGettingTable<String,? extends ADirectory>,R> logic)
<S, R> R
accessDirectories(S subject, BiFunction<? super XGettingTable<String,? extends ADirectory>,S,R> logic)
<R> R
accessFiles(Function<? super XGettingTable<String,? extends AFile>,R> logic)
<S, R> R
accessFiles(S subject, BiFunction<? super XGettingTable<String,? extends AFile>,S,R> logic)
int
consolidate()
Removes all child items (ADirectory
orAFile
) that have no physical equivalent.int
consolidateDirectories()
int
consolidateFiles()
boolean
contains(AItem item)
boolean
containsDeep(AItem item)
boolean
containsDirectory(String directoryName)
boolean
containsFile(String fileName)
boolean
containsItem(String itemName)
ADirectory
ensureDirectory(String identifier)
AFile
ensureFile(String identifier, String name, String type)
ADirectory
getDirectory(String identifier)
AFile
getFile(String identifier)
AItem
getItem(String identifier)
ADirectory
inventorize()
<C extends Consumer<? super ADirectory>>
CiterateDirectories(C iterator)
<C extends Consumer<? super AFile>>
CiterateFiles(C iterator)
<C extends Consumer<? super AItem>>
CiterateItems(C iterator)
<C extends Consumer<? super ADirectory.Observer>>
CiterateObservers(C logic)
boolean
registerObserver(ADirectory.Observer observer)
boolean
removeObserver(ADirectory.Observer observer)
ADirectory
resolveDirectoryPath(String[] pathElements, int offset, int length)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface one.microstream.afs.ADirectory
contains, contains, containsDeep, containsDeep, ensureExists, ensureFile, ensureFile, exists, listDirectories, listFiles, listItems, toPath, toPathString
Methods inherited from interface one.microstream.afs.AResolving
resolveDirectoryPath, resolveFilePath, resolveFilePath, resolveFilePath
-
Constructor Details
-
Abstract
public Abstract()
-
-
Method Details
-
getItem
- Specified by:
getItem
in interfaceADirectory
-
getDirectory
- Specified by:
getDirectory
in interfaceADirectory
-
getFile
- Specified by:
getFile
in interfaceADirectory
-
inventorize
- Specified by:
inventorize
in interfaceADirectory
-
iterateItems
- Specified by:
iterateItems
in interfaceADirectory
-
iterateDirectories
- Specified by:
iterateDirectories
in interfaceADirectory
-
iterateFiles
- Specified by:
iterateFiles
in interfaceADirectory
-
consolidate
public int consolidate()Description copied from interface:ADirectory
Removes all child items (ADirectory
orAFile
) that have no physical equivalent.- Specified by:
consolidate
in interfaceADirectory
- Returns:
-
consolidateDirectories
public int consolidateDirectories()- Specified by:
consolidateDirectories
in interfaceADirectory
-
consolidateFiles
public int consolidateFiles()- Specified by:
consolidateFiles
in interfaceADirectory
-
contains
- Specified by:
contains
in interfaceADirectory
-
containsDeep
- Specified by:
containsDeep
in interfaceADirectory
-
containsItem
- Specified by:
containsItem
in interfaceADirectory
-
containsDirectory
- Specified by:
containsDirectory
in interfaceADirectory
-
containsFile
- Specified by:
containsFile
in interfaceADirectory
-
ensureDirectory
- Specified by:
ensureDirectory
in interfaceADirectory
-
ensureFile
- Specified by:
ensureFile
in interfaceADirectory
-
resolveDirectoryPath
- Specified by:
resolveDirectoryPath
in interfaceADirectory
- Specified by:
resolveDirectoryPath
in interfaceAResolving
-
accessDirectories
public final <R> R accessDirectories(Function<? super XGettingTable<String,? extends ADirectory>,R> logic)- Specified by:
accessDirectories
in interfaceADirectory
-
accessFiles
- Specified by:
accessFiles
in interfaceADirectory
-
accessDirectories
public final <S, R> R accessDirectories(S subject, BiFunction<? super XGettingTable<String,? extends ADirectory>,S,R> logic)- Specified by:
accessDirectories
in interfaceADirectory
-
accessFiles
public final <S, R> R accessFiles(S subject, BiFunction<? super XGettingTable<String,? extends AFile>,S,R> logic)- Specified by:
accessFiles
in interfaceADirectory
-
registerObserver
- Specified by:
registerObserver
in interfaceADirectory
-
removeObserver
- Specified by:
removeObserver
in interfaceADirectory
-
iterateObservers
- Specified by:
iterateObservers
in interfaceADirectory
-