/** * Internal use only */ public void addListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot add a null listener"); } listeners.add(wrapIfNotThreadSafe(listener)); }
/** * Internal use only. The Result's listener must be first. */ public void addFirstListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot add a null listener"); } listeners.add(0, wrapIfNotThreadSafe(listener)); } }
/** * Internal use only */ public void removeListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot remove a null listener"); } listeners.remove(wrapIfNotThreadSafe(listener)); }
/** * Internal use only. The Result's listener must be first. */ public void addFirstListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot add a null listener"); } listeners.add(0, wrapIfNotThreadSafe(listener)); } }
/** * Internal use only */ public void addListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot add a null listener"); } listeners.add(wrapIfNotThreadSafe(listener)); }
/** * Internal use only */ public void addListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot add a null listener"); } listeners.add(wrapIfNotThreadSafe(listener)); }
/** * Internal use only */ public void removeListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot remove a null listener"); } listeners.remove(wrapIfNotThreadSafe(listener)); }
/** * Internal use only */ public void removeListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot remove a null listener"); } listeners.remove(wrapIfNotThreadSafe(listener)); }
/** * Internal use only. The Result's listener must be first. */ public void addFirstListener(RunListener listener) { if (listener == null) { throw new NullPointerException("Cannot add a null listener"); } listeners.add(0, wrapIfNotThreadSafe(listener)); } }