Class AbstractWebNotifListData<K,V>
java.lang.Object
org.exoplatform.commons.notification.impl.service.storage.cache.AbstractWebNotifListData<K,V>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ListWebNotificationsData
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidafterPut()voidvoidvoidbeforeMove(V value) voidvoidvoidvoidclear()Removes all of the elements from this list.booleanReturns true if this list contains the specified element.booleangetList()Gets the list of its wrapperinthashCode()voidinsertLast(V value) Inserts the value into last positionvoidMoves the value at the given indexvoidMoves the value at the top of listvoidPuts the value at the given indexvoidPuts the value at the top of listvoidMoves the value at the given indexbooleanremoveByValue(V value) Removes the item by its valueintsize()Gets the size of elementssubList(int from, int to) Gets the sublist by given from and to
-
Field Details
-
key
-
-
Constructor Details
-
AbstractWebNotifListData
- Parameters:
key-list-
-
AbstractWebNotifListData
-
-
Method Details
-
getList
Gets the list of its wrapper- Returns:
-
size
public int size()Gets the size of elements- Returns:
-
subList
Gets the sublist by given from and to- Parameters:
from- the given fromto- the given to- Returns:
- the sublist
-
put
Puts the value at the given index- Parameters:
value-ownerId-
-
putAtTop
Puts the value at the top of list- Parameters:
value- the given value
-
beforePut
public void beforePut() -
afterPut
public void afterPut() -
beforePutRef
public void beforePutRef() -
afterPutRef
public void afterPutRef() -
beforeMove
-
afterMove
public void afterMove() -
beforeRemove
public void beforeRemove() -
afterRemove
public void afterRemove() -
move
Moves the value at the given index- Parameters:
value-ownerId-
-
moveTop
Moves the value at the top of list- Parameters:
value- the given value
-
remove
Moves the value at the given index- Parameters:
value-ownerId-
-
insertLast
Inserts the value into last position- Parameters:
value-
-
contains
Returns true if this list contains the specified element.- Parameters:
value-- Returns:
-
clear
public void clear()Removes all of the elements from this list. -
removeByValue
Removes the item by its value- Parameters:
value- the id- Returns:
-
equals
-
hashCode
public int hashCode()
-