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
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Number of list elements per list chunkFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundMemoryList(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, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein 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
-