/** * Searches an entry for the given <code>action</code> and <code>target</code>. * @param <A> the type that the converter will produce * @param <D> the type of action needed as input * @param action the action that will be transformed * @param target the target platform * @return the converter or <code>null</code> if no converter is found */ @SuppressWarnings( "unchecked" ) private <A, D extends DockAction> Entry<D, A> getEntry( ActionType<D> action, ViewTarget<? super A> target ){ Entry<?,?> result = converters.get( new Tuple<ActionType<?>, ViewTarget<?>>( action, target )); if( result == null ){ result = new Entry<D,A>(); converters.put( new Tuple<ActionType<?>, ViewTarget<?>>( action, target ), result ); } return (Entry<D, A>)result; }
/** * Searches an entry for the given <code>action</code> and <code>target</code>. * @param <A> the type that the converter will produce * @param <D> the type of action needed as input * @param action the action that will be transformed * @param target the target platform * @return the converter or <code>null</code> if no converter is found */ @SuppressWarnings( "unchecked" ) private <A, D extends DockAction> Entry<D, A> getEntry( ActionType<D> action, ViewTarget<? super A> target ){ Entry<?,?> result = converters.get( new Tuple<ActionType<?>, ViewTarget<?>>( action, target )); if( result == null ){ result = new Entry<D,A>(); converters.put( new Tuple<ActionType<?>, ViewTarget<?>>( action, target ), result ); } return (Entry<D, A>)result; }