@Override public <V> V convert(Class<V> datatype, Object value) { Preconditions.checkNotNull(datatype); Preconditions.checkNotNull(value); AttributeHandler handler = handlers.get(datatype); if (handler!=null) return (V)handler.convert(value); else return null; }
@Override public <V> void verifyAttribute(Class<V> datatype, Object value) { Preconditions.checkNotNull(datatype); Preconditions.checkNotNull(value); AttributeHandler handler = handlers.get(datatype); if (handler!=null) handler.verifyAttribute(value); }