Package org.apache.commons.vfs2.cache
Class LRUFilesCache.MyLRUMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apache.commons.collections4.map.AbstractHashedMap<K,V>
-
- org.apache.commons.collections4.map.AbstractLinkedMap<K,V>
-
- org.apache.commons.collections4.map.LRUMap<FileName,FileObject>
-
- org.apache.commons.vfs2.cache.LRUFilesCache.MyLRUMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<FileName,FileObject>
,org.apache.commons.collections4.BoundedMap<FileName,FileObject>
,org.apache.commons.collections4.Get<FileName,FileObject>
,org.apache.commons.collections4.IterableGet<FileName,FileObject>
,org.apache.commons.collections4.IterableMap<FileName,FileObject>
,org.apache.commons.collections4.OrderedMap<FileName,FileObject>
,org.apache.commons.collections4.Put<FileName,FileObject>
- Enclosing class:
- LRUFilesCache
private class LRUFilesCache.MyLRUMap extends org.apache.commons.collections4.map.LRUMap<FileName,FileObject>
The file cache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.collections4.map.AbstractLinkedMap
org.apache.commons.collections4.map.AbstractLinkedMap.EntrySetIterator<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractLinkedMap.KeySetIterator<K extends java.lang.Object>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkIterator<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractLinkedMap.LinkMapIterator<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractLinkedMap.ValuesIterator<V extends java.lang.Object>
-
Nested classes/interfaces inherited from class org.apache.commons.collections4.map.AbstractHashedMap
org.apache.commons.collections4.map.AbstractHashedMap.EntrySet<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractHashedMap.HashEntry<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractHashedMap.HashIterator<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractHashedMap.HashMapIterator<K extends java.lang.Object,V extends java.lang.Object>, org.apache.commons.collections4.map.AbstractHashedMap.KeySet<K extends java.lang.Object>, org.apache.commons.collections4.map.AbstractHashedMap.Values<V extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private FileSystem
filesystem
The FileSystemprivate static long
serialVersionUID
serialVersionUID format is YYYYMMDD for the date of the last binary change.
-
Constructor Summary
Constructors Constructor Description MyLRUMap(FileSystem filesystem, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
removeLRU(org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<FileName,FileObject> linkEntry)
-
Methods inherited from class org.apache.commons.collections4.map.LRUMap
addMapping, clone, doReadObject, doWriteObject, get, get, isFull, isScanUntilRemovable, maxSize, moveToMRU, reuseMapping, updateEntry
-
Methods inherited from class org.apache.commons.collections4.map.AbstractLinkedMap
addEntry, clear, containsValue, createEntry, createEntrySetIterator, createKeySetIterator, createValuesIterator, entryAfter, entryBefore, firstKey, getEntry, getEntry, init, lastKey, mapIterator, nextKey, previousKey, removeEntry
-
Methods inherited from class org.apache.commons.collections4.map.AbstractHashedMap
calculateNewCapacity, calculateThreshold, checkCapacity, containsKey, convertKey, destroyEntry, ensureCapacity, entryHashCode, entryKey, entryNext, entrySet, entryValue, equals, hash, hashCode, hashIndex, isEmpty, isEqualKey, isEqualValue, keySet, put, putAll, remove, removeMapping, reuseEntry, size, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.commons.collections4.Get
containsKey, containsValue, entrySet, isEmpty, keySet, remove, size, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
serialVersionUID format is YYYYMMDD for the date of the last binary change.- See Also:
- Constant Field Values
-
filesystem
private final FileSystem filesystem
The FileSystem
-
-
Constructor Detail
-
MyLRUMap
public MyLRUMap(FileSystem filesystem, int size)
-
-
Method Detail
-
removeLRU
protected boolean removeLRU(org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<FileName,FileObject> linkEntry)
- Overrides:
removeLRU
in classorg.apache.commons.collections4.map.LRUMap<FileName,FileObject>
-
-