C - the type of the action context that will be passed to the observersE - the type of the entity.public final class Interest<C,E> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Interest.Builder<E> |
| Constructor and Description |
|---|
Interest(Action<C,E> action,
Class<E> entityType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Action<C,E> |
getAction() |
Class<E> |
getEntityType() |
int |
hashCode() |
static <T> Interest.Builder<T> |
in(Class<T> entity) |
boolean |
matches(Action<?,?> action,
Object object)
Checks whether given object is of interest to this interest instance.
|
String |
toString() |
public static <T> Interest.Builder<T> in(Class<T> entity)
public boolean matches(Action<?,?> action, Object object)
action - the action to be performed on the objectobject - the object to checkCopyright © 2015 Red Hat, Inc.. All rights reserved.