public class ActiveCollection.ActiveCollectionAdapter extends Object implements ActiveChangeListener
Constructor and Description |
---|
ActiveCollectionAdapter(ActiveCollection parent,
ActiveCollectionContext context,
Predicate predicate)
This constructor initializes the fields within the adapter.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
This method closes the adapter.
|
protected ActiveCollectionContext |
getContext()
The context.
|
protected ActiveCollection |
getParent()
The parent active collection.
|
protected Predicate |
getPredicate()
The predicate.
|
void |
inserted(Object key,
Object value)
This method notifies the listener that an object has been
inserted.
|
void |
removed(Object key,
Object value)
This method notifies the listener that an object has been
inserted.
|
void |
updated(Object key,
Object value)
This method notifies the listener that an object has been
inserted.
|
public ActiveCollectionAdapter(ActiveCollection parent, ActiveCollectionContext context, Predicate predicate)
parent
- The parent active collectioncontext
- The contextpredicate
- The predicate used to filter changes applied to the
active collectionprotected ActiveCollection getParent()
protected Predicate getPredicate()
protected ActiveCollectionContext getContext()
public void inserted(Object key, Object value)
inserted
in interface ActiveChangeListener
key
- The key, which for a list will be an indexvalue
- The valuepublic void updated(Object key, Object value)
updated
in interface ActiveChangeListener
key
- The key, which for a list will be an indexvalue
- The valuepublic void removed(Object key, Object value)
removed
in interface ActiveChangeListener
key
- The key, which for a list will be an indexvalue
- The valuepublic void close()
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.