public class AbstractListInterceptor<T> extends Object implements ListInterceptor<T>
Constructor and Description |
---|
AbstractListInterceptor() |
Modifier and Type | Method and Description |
---|---|
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) . |
public boolean approveAdd(int index, T element)
approveAdd
in interface ListInterceptor<T>
public boolean approveAdd(int index, Collection<T> elements)
approveAdd(int, Object)
calls.approveAdd
in interface ListInterceptor<T>
public boolean approveRemove(T element)
approveRemove
in interface ListInterceptor<T>
public boolean approveRemove(Collection<T> elements)
approveRemove
in interface ListInterceptor<T>
public boolean approveSet(int index, T oldElement, T newElement)
approveRemove(Object)
and
approveAdd(int, Object)
.approveSet
in interface ListInterceptor<T>
ListInterceptor.approveSet(int, Object, Object)
Copyright © 2024 levigo holding gmbh. All rights reserved.