public static <U extends IsoUnit> Duration.Formatter<U> formatter(
        Class<U> type,
        String pattern
    ) {

        return Duration.Formatter.ofPattern(type, pattern);

    }
public static < U extends IsoUnit > Duration . Formatter < U > formatter ( Class < U > type , String pattern ) { return Duration . Formatter . ofPattern ( type , pattern ) ; }
/*[deutsch]
<p>&Auml;quivalent zu {@link net.time4j.Duration.Formatter#ofPattern(Class, String)}. </p>

@param   <U>     generic unit type
@param   type    reified unit type
@param   pattern format pattern
@return  new formatter instance
@throws  IllegalArgumentException in any case of pattern inconsistencies or failures
@since   3.0