/** * @return A structural Pattern Matcher for this Adapter that allows matching on Queue / Topic types */ default Either<Queue<T>, Topic<T>> matches() { return fold(q -> Either.left(q), topic -> Either.right(topic)); }
/** * @return A structural Pattern Matcher for this Adapter that allows matching on Queue / Topic types */ default Either<Queue<T>, Topic<T>> matches() { return fold(q -> Either.left(q), topic -> Either.right(topic)); }