Class BackgroundMemoryList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
de.uka.ipd.sdq.sensorframework.storage.lists.BackgroundMemoryList<T>
- Type Parameters:
T
- The generic type parameter of the list's elements
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
Deprecated.
Superseded by EDP2.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Number of list elements per list chunkFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionBackgroundMemoryList
(File f, ISerialiser<T> serialiser) Deprecated.Constructor of a background memory listBackgroundMemoryList
(String filename, ISerialiser<T> serialiser) Deprecated.Constructor of a background memory list -
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
Field Details
-
MEMORY_CHUNKS_SIZE
public static final int MEMORY_CHUNKS_SIZEDeprecated.Number of list elements per list chunk- See Also:
-
-
Constructor Details
-
BackgroundMemoryList
Deprecated.Constructor of a background memory list- Parameters:
filename
- The file used as background storageserialiser
- The serialiser used to serialise the elements of the list- Throws:
IOException
- Thrown if file IO fails
-
BackgroundMemoryList
Deprecated.Constructor of a background memory list- Parameters:
f
- The file used as background storageserialiser
- The serialiser used to serialise the elements of the list- Throws:
IOException
- Thrown if file IO fails
-
-
Method Details
-
add
Deprecated. -
get
Deprecated. -
size
public int size()Deprecated.- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
close
Deprecated.Closes the background storage. The list is inaccessible afterwards- Throws:
IOException
-
flush
Deprecated.Writes all buffered data to the background storage and clears the current chunk.- Throws:
IOException
-