Package com.storedobject.core
Class MemoryCache<T>
java.lang.Object
com.storedobject.core.MemoryCache<T>
- All Implemented Interfaces:
Filtered<T>,Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
- Direct Known Subclasses:
ObjectMemoryList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) voidclear()voidclose()booleanbooleancontainsAll(Collection<?> c) voidvoidfilter(Predicate<? super T> filter, Comparator<? super T> comparator) get(int index) final Comparator<? super T> intbooleanisEmpty()iterator()intlistIterator(int index) voidorder(Comparator<? super T> comparator) remove(int index) booleanbooleanremoveAll(Collection<?> collection) booleanbooleanretainAll(Collection<?> collection) intsize()intsize(int startingIndex, int endingIndex) intsizeAll()voidsort(Comparator<? super T> comparator) stream(int startingIndex, int endingIndex) streamAll(int startingIndex, int endingIndex) subList(int fromIndex, int toIndex) Object[]toArray()<O> O[]toArray(O[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, spliterator
-
Constructor Details
-
MemoryCache
public MemoryCache()
-
-
Method Details
-
close
public void close() -
size
-
size
-
sizeAll
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
removeIf
- Specified by:
removeIfin interfaceCollection<T>
-
retainAll
-
clear
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
sort
-
order
-
filter
-
filter
-
getFilter
-
getComparator
- Specified by:
getComparatorin interfaceFiltered<T>
-
stream
-
streamAll
-