destroy method

void destroy()

Destroys this Spring, meaning that it will be deregistered from its BaseSpringSystem so it won't be iterated anymore and will clear its set of listeners. Do not use the Spring after calling this, doing so may just cause an exception to be thrown.

Implementation

void destroy() {
  _mListeners.clear();
  _mSpringSystem.deregisterSpring(this);
}