|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.ui.widget.filter.AcceptorFactory
public class AcceptorFactory
This class is an Acceptor factory.
For simpleAcceptorFactory.LongAcceptor we use a cache to use an unique instance.
| Nested Class Summary | |
|---|---|
static class |
AcceptorFactory.DoubleAcceptor
Double acceptor implementation |
static class |
AcceptorFactory.FloatAcceptor
Float acceptor implementation |
static class |
AcceptorFactory.LongAcceptor
Long acceptor implementation |
| Field Summary | |
|---|---|
protected static java.util.Map<java.lang.Integer,Acceptor<?>> |
cache
cache of simple acceptors indexed by their klazz hashcode |
| Constructor Summary | |
|---|---|
AcceptorFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
createCompositeFilterAcceptor(java.lang.Class<T> klazz,
ValueGetter<M,T> getter)
Obtain a new instance of a CompositeFilterAcceptor using as delegate Acceptor a simple one in cache |
|
static
|
getAcceptor(java.lang.Class<T> klazz)
Obtain a acceptor from caceh via his klazz key |
|
protected static java.util.Map<java.lang.Integer,Acceptor<?>> |
getCache()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.util.Map<java.lang.Integer,Acceptor<?>> cache
| Constructor Detail |
|---|
public AcceptorFactory()
| Method Detail |
|---|
public static <M,T> FilterAcceptor<M,T> createCompositeFilterAcceptor(java.lang.Class<T> klazz,
ValueGetter<M,T> getter)
klazz - klazz of simple Acceptor to usegetter - ValueGetter to use
public static <T> Acceptor<T> getAcceptor(java.lang.Class<T> klazz)
klazz - klazz of Acceptor to get
protected static java.util.Map<java.lang.Integer,Acceptor<?>> getCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||