@Test public void noneRequired() { final String simplified = new VisibilitySimplifier().simplify("u"); assertEquals("u", simplified); }
public static String simplify(final String visibility) { requireNonNull(visibility); String last = visibility; String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8); while(!simplified.equals(last)) { last = simplified; simplified = new String(new ColumnVisibility(simplified).flatten(), Charsets.UTF_8); } return simplified; }
VisibilitySimplifier { public static String simplify(final String visibility) { requireNonNull(visibility); String last = visibility; String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8); while(!simplified.equals(last)) { last = simplified; simplified = new String(new ColumnVisibility(simplified).flatten(), Charsets.UTF_8); } return simplified; } }
VisibilitySimplifier { public static String simplify(final String visibility) { requireNonNull(visibility); String last = visibility; String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8); while(!simplified.equals(last)) { last = simplified; simplified = new String(new ColumnVisibility(simplified).flatten(), Charsets.UTF_8); } return simplified; }  }
VisibilitySimplifier { public static String simplify(final String visibility) { requireNonNull(visibility); String last = visibility; String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8); while(!simplified.equals(last)) { last = simplified; simplified = new String(new ColumnVisibility(simplified).flatten(), Charsets.UTF_8); } return simplified; }  static String unionAndSimplify(final String vis1, final String vis2); static String simplify(final String visibility); }
VisibilitySimplifier { public static String simplify(final String visibility) { requireNonNull(visibility); String last = visibility; String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8); while(!simplified.equals(last)) { last = simplified; simplified = new String(new ColumnVisibility(simplified).flatten(), Charsets.UTF_8); } return simplified; }  static String unionAndSimplify(final String vis1, final String vis2); static String simplify(final String visibility);  }