ChecklistExporter { static <U> BinaryOperator<U> preferDifferent(final @NotNull U value) { return (left, right) -> left.equals(value) ? right : left; } private  ChecklistExporter(final List<Op> operations,
                              final List<String> exportTypeDefs,
                              final List<Rule> pathScopes,
                              final List<Rule> nodeTypeFilters,
                              final List<JcrNs> jcrNamespaces); void updateChecklist(final WriterOpener writerOpener,
                                final Session session,
                                final Checklist checklist,
                                final ForcedRootUpdatePolicy updatePolicy); List<ForcedRoot> findRoots(final Session session); static final ForcedRootUpdatePolicy DEFAULT_UPDATE_POLICY; static final String COVARIANT_PREFIX; }
@Test public void testPreferDifferent() { final String value = "original"; final BinaryOperator<String> operator = ChecklistExporter.preferDifferent(value); assertEquals("left if unequal", "left", operator.apply("left", "right")); assertEquals("right if left equal", "right", operator.apply(value, "right")); }