com.levigo.util.base.collections
Class AbstractListInterceptor<T>

java.lang.Object
  extended by com.levigo.util.base.collections.AbstractListInterceptor<T>
All Implemented Interfaces:
ListInterceptor<T>

public class AbstractListInterceptor<T>
extends Object
implements ListInterceptor<T>


Constructor Summary
AbstractListInterceptor()
           
 
Method Summary
 boolean approveAdd(int index, Collection<T> elements)
          This default implementation delegates to a series of approveAdd(int, Object) calls.
 boolean approveAdd(int index, T element)
           
 boolean approveRemove(Collection<T> elements)
           
 boolean approveRemove(T element)
           
 boolean approveSet(int index, T oldElement, T newElement)
          This default implementation delegates to a pair of calls to approveRemove(Object) and approveAdd(int, Object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractListInterceptor

public AbstractListInterceptor()
Method Detail

approveAdd

public boolean approveAdd(int index,
                          T element)
Specified by:
approveAdd in interface ListInterceptor<T>

approveAdd

public boolean approveAdd(int index,
                          Collection<T> elements)
This default implementation delegates to a series of approveAdd(int, Object) calls.

Specified by:
approveAdd in interface ListInterceptor<T>

approveRemove

public boolean approveRemove(T element)
Specified by:
approveRemove in interface ListInterceptor<T>

approveRemove

public boolean approveRemove(Collection<T> elements)
Specified by:
approveRemove in interface ListInterceptor<T>

approveSet

public boolean approveSet(int index,
                          T oldElement,
                          T newElement)
This default implementation delegates to a pair of calls to approveRemove(Object) and approveAdd(int, Object).

Specified by:
approveSet in interface ListInterceptor<T>
See Also:
ListInterceptor.approveSet(int, Object, Object)


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.