/** * Returns a {@code MethodRuleChain} with a single {@link MethodRule}. This method * is the usual starting point of a {@code MethodRuleChain}. * * @param outerRule the outer rule of the {@code MethodRuleChain}. * @return a {@code MethodRuleChain} with a single {@link MethodRule}. */ public static MethodRuleChain outer(MethodRule outerRule) { return MethodRuleChain.emptyChain().around(outerRule); }
/** * Returns a {@code MethodRuleChain} with a single {@link MethodRule}. This method * is the usual starting point of a {@code MethodRuleChain}. * * @param outerRule the outer rule of the {@code MethodRuleChain}. * @return a {@code MethodRuleChain} with a single {@link MethodRule}. */ public static MethodRuleChain outer(MethodRule outerRule) { return MethodRuleChain.emptyChain().around(outerRule); }