/** * Return a composite of the given {@link ChannelMatcher}s. This means all {@link ChannelMatcher} must * return {@code true} to match. */ public static ChannelMatcher compose(ChannelMatcher... matchers) { if (matchers.length < 1) { throw new IllegalArgumentException("matchers must at least contain one element"); } if (matchers.length == 1) { return matchers[0]; } return new CompositeMatcher(matchers); }
/** * Return a composite of the given {@link ChannelMatcher}s. This means all {@link ChannelMatcher} must * return {@code true} to match. */ public static ChannelMatcher compose(ChannelMatcher... matchers) { if (matchers.length < 1) { throw new IllegalArgumentException("matchers must at least contain one element"); } if (matchers.length == 1) { return matchers[0]; } return new CompositeMatcher(matchers); }
/** * Return a composite of the given {@link ChannelMatcher}s. This means all {@link ChannelMatcher} must * return {@code true} to match. */ public static ChannelMatcher compose(ChannelMatcher... matchers) { if (matchers.length < 1) { throw new IllegalArgumentException("matchers must at least contain one element"); } if (matchers.length == 1) { return matchers[0]; } return new CompositeMatcher(matchers); }
/** * Return a composite of the given {@link ChannelMatcher}s. This means all {@link ChannelMatcher} must * return {@code true} to match. */ public static ChannelMatcher compose(ChannelMatcher... matchers) { if (matchers.length < 1) { throw new IllegalArgumentException("matchers must at least contain one element"); } if (matchers.length == 1) { return matchers[0]; } return new CompositeMatcher(matchers); }
/** * Return a composite of the given {@link ChannelMatcher}s. This means all {@link ChannelMatcher} must * return {@code true} to match. */ public static ChannelMatcher compose(ChannelMatcher... matchers) { if (matchers.length < 1) { throw new IllegalArgumentException("matchers must at least contain one element"); } if (matchers.length == 1) { return matchers[0]; } return new CompositeMatcher(matchers); }
/** * Return a composite of the given {@link ChannelMatcher}s. This means all {@link ChannelMatcher} must * return {@code true} to match. */ public static ChannelMatcher compose(ChannelMatcher... matchers) { if (matchers.length < 1) { throw new IllegalArgumentException("matchers must at least contain one element"); } if (matchers.length == 1) { return matchers[0]; } return new CompositeMatcher(matchers); }