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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) void
clear()
void
close()
boolean
boolean
containsAll
(Collection<?> c) void
void
filter
(Predicate<? super T> filter, Comparator<? super T> comparator) get
(int index) final Comparator
<? super T> int
boolean
isEmpty()
iterator()
int
listIterator
(int index) void
order
(Comparator<? super T> comparator) remove
(int index) boolean
boolean
removeAll
(Collection<?> collection) boolean
boolean
retainAll
(Collection<?> collection) int
size()
int
size
(int startingIndex, int endingIndex) int
sizeAll()
void
sort
(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, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
removeIf
- Specified by:
removeIf
in interfaceCollection<T>
-
retainAll
-
clear
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
sort
-
order
-
filter
-
filter
-
getFilter
-
getComparator
- Specified by:
getComparator
in interfaceFiltered<T>
-
stream
-
streamAll
-