public void addMemoryListener(final IMemoryListener listener) {
    Preconditions.checkNotNull(listener, "Error: Listener can't be null");

    m_listeners.add(listener);
  }
Adds a listener that is notified about changes in the simulated memory.

@param listener The listener to add to the nofification list.
@throws NullPointerException Thrown if the listener is null.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/memmanager/Memory.java