public abstract class AbstractWebNotifListData<K,V> extends Object implements Serializable
| Constructor and Description |
|---|
AbstractWebNotifListData(K key) |
AbstractWebNotifListData(K key,
List<V> list) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMove() |
void |
afterPut() |
void |
afterPutRef() |
void |
afterRemove() |
void |
beforeMove(V value) |
void |
beforePut() |
void |
beforePutRef() |
void |
beforeRemove() |
void |
clear()
Removes all of the elements from this list.
|
boolean |
contains(V value)
Returns true if this list contains the specified element.
|
boolean |
equals(Object o) |
List<V> |
getList()
Gets the list of its wrapper
|
int |
hashCode() |
void |
insertLast(V value)
Inserts the value into last position
|
void |
move(int index,
V value,
String ownerId)
Moves the value at the given index
|
void |
moveTop(V value,
String ownerId)
Moves the value at the top of list
|
void |
put(int index,
V value,
String ownerId)
Puts the value at the given index
|
void |
putAtTop(V value,
String ownerId)
Puts the value at the top of list
|
void |
remove(V value,
String ownerId)
Moves the value at the given index
|
boolean |
removeByValue(V value)
Removes the item by its value
|
int |
size()
Gets the size of elements
|
List<V> |
subList(int from,
int to)
Gets the sublist by given from and to
|
protected final K key
public AbstractWebNotifListData(K key, List<V> list)
key - list - public AbstractWebNotifListData(K key)
public int size()
public List<V> subList(int from, int to)
from - the given fromto - the given topublic void put(int index,
V value,
String ownerId)
value - ownerId - public void putAtTop(V value, String ownerId)
value - the given valuepublic void beforePut()
public void afterPut()
public void beforePutRef()
public void afterPutRef()
public void beforeMove(V value)
public void afterMove()
public void beforeRemove()
public void afterRemove()
public void move(int index,
V value,
String ownerId)
value - ownerId - public void moveTop(V value, String ownerId)
value - the given valuepublic void remove(V value, String ownerId)
value - ownerId - public void insertLast(V value)
value - public boolean contains(V value)
value - public void clear()
public boolean removeByValue(V value)
value - the idCopyright © 2003–2019 eXo Platform SAS. All rights reserved.