Class ListWithEvents<T>
java.lang.Object
com.marginallyclever.ro3.listwithevents.ListWithEvents<T>
- Type Parameters:
T
- The type of item in the list.
A
List
that fires events when items are added or removed.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addItemAddedListener
(ItemAddedListener<T> listener) void
addItemRemovedListener
(ItemRemovedListener<T> listener) getList()
void
void
void
removeItemAddedListener
(ItemAddedListener<T> listener) void
removeItemRemovedListener
(ItemRemovedListener<T> listener) void
void
int
size()
-
Constructor Details
-
ListWithEvents
public ListWithEvents()
-
-
Method Details
-
add
-
remove
-
addItemAddedListener
-
removeItemAddedListener
-
addItemRemovedListener
-
removeItemRemovedListener
-
getList
-
removeAll
public void removeAll() -
size
public int size() -
addAll
-
set
-
set
-