@Test public void testAttributes() { final AttributesMap attributes = computeAttributes(); assertEquals(Sets.newHashSet("foo", "bar", "baz"), attributes.keySet()); assertTrue(attributes.getBoolean("foo")); assertFalse(attributes.getBoolean("bar")); assertEquals(Long.valueOf(1), attributes.getNumber("baz")); assertNull(attributes.getNumber("quux")); }
protected AttributesMap.Builder attributes() { return AttributesMap.newBuilder(); }
Identity { protected AttributesMap.Builder attributes() { return AttributesMap.newBuilder(); } }
Identity { protected AttributesMap.Builder attributes() { return AttributesMap.newBuilder(); }  }
Identity { protected AttributesMap.Builder attributes() { return AttributesMap.newBuilder(); }  long computeHash(int seed, Set<String> hashAttributes, AttributesMap attributes); abstract AttributesMap computeAttributes(); static Set<String> getSupportedAttributes(Class<T> clazz); }
Identity { protected AttributesMap.Builder attributes() { return AttributesMap.newBuilder(); }  long computeHash(int seed, Set<String> hashAttributes, AttributesMap attributes); abstract AttributesMap computeAttributes(); static Set<String> getSupportedAttributes(Class<T> clazz);  }