@Test public void testPartialMatch() throws Exception { MatchTable<String, Integer> result = setMatcher.partialMatch(source, target); assertEquals(Sets.newHashSet("d", "e"), result.getTargetElements()); assertEquals(1, result.getSortedSourceElemsThatMatch("d").size()); assertEquals(1, result.getSortedSourceElemsThatMatch("e").size()); assertNotNull(result.getSortedSourceElemsThatMatch("f")); assertTrue(result.getSortedSourceElemsThatMatch("f").isEmpty()); }
@Override public MatchTable<E, T> partialMatch(Set<E> source, Set<E> target) { return match(source, target, false); }
SetMatchFunctionDecorator implements SetMatchFunction<E,T> { @Override public MatchTable<E, T> partialMatch(Set<E> source, Set<E> target) { return match(source, target, false); } }
SetMatchFunctionDecorator implements SetMatchFunction<E,T> { @Override public MatchTable<E, T> partialMatch(Set<E> source, Set<E> target) { return match(source, target, false); } SetMatchFunctionDecorator(MatchFunction<E, T> decoratedMatcher); }
SetMatchFunctionDecorator implements SetMatchFunction<E,T> { @Override public MatchTable<E, T> partialMatch(Set<E> source, Set<E> target) { return match(source, target, false); } SetMatchFunctionDecorator(MatchFunction<E, T> decoratedMatcher); @Override MatchTable<E, T> partialMatch(Set<E> source, Set<E> target); @Override MatchTable<E, T> fullMatch(Set<E> source, Set<E> target); @Override T match(E source, E target); }
SetMatchFunctionDecorator implements SetMatchFunction<E,T> { @Override public MatchTable<E, T> partialMatch(Set<E> source, Set<E> target) { return match(source, target, false); } SetMatchFunctionDecorator(MatchFunction<E, T> decoratedMatcher); @Override MatchTable<E, T> partialMatch(Set<E> source, Set<E> target); @Override MatchTable<E, T> fullMatch(Set<E> source, Set<E> target); @Override T match(E source, E target);  }