Class SignalMemoryModel

java.lang.Object
net.algart.arrays.AbstractMemoryModel
net.algart.arrays.SignalMemoryModel
All Implemented Interfaces:
MemoryModel

public class SignalMemoryModel extends AbstractMemoryModel

The degenerate memory model that does not allow to create any AlgART arrays. Any attempt to create an array by methods of this class leads to UnsupportedElementTypeException (or, maybe, NullPointerException, IllegalArgumentException or ClassCastException, if the comments to the method require this).

This class may be useful to detect a bug, when some method have a MemoryModel argument, but you are sure that this argument must not be used for creating any AlgART arrays.

This class is immutable and thread-safe: there are no ways to modify settings of its instance returned by getInstance() method. Moreover, it is a singleton: getInstance() always returns the same object.

Author:
Daniel Alievsky