@Test public void testSimpleChanges() { assertThat(attributes.get("myvalue"), is(nullValue())); assertTrue(applyAttributeChange(attributes, SET, "myvalue", 1)); assertFalse(applyAttributeChange(attributes, SET, "myvalue", 1)); assertTrue(applyAttributeChange(attributes, REMOVE, "myvalue", null)); assertFalse(applyAttributeChange(attributes, REMOVE, "myvalue", null)); }
public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } private  AttributesHelper(); }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } private  AttributesHelper(); static boolean applyAttributeChange(
      final RepositoryContent content,
      final AttributeChange change,
      final String key,
      @Nullable final Object value); static boolean applyAttributeChange(
      final AttributesMap attributes,
      final AttributeChange change,
      final String key,
      @Nullable final Object value); }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } private  AttributesHelper(); static boolean applyAttributeChange(
      final RepositoryContent content,
      final AttributeChange change,
      final String key,
      @Nullable final Object value); static boolean applyAttributeChange(
      final AttributesMap attributes,
      final AttributeChange change,
      final String key,
      @Nullable final Object value);  }