@Test public void getType() throws Exception { Class<?> type = new AttributeKey<Number>(Number.class, "keyName").getType(); assertThat(type, is((Object) Number.class)); }
public Class<T> getType() { return attributeType; }
AttributeKey { public Class<T> getType() { return attributeType; } }
AttributeKey { public Class<T> getType() { return attributeType; } AttributeKey(Class<T> attributeType, String attributeName); }
AttributeKey { public Class<T> getType() { return attributeType; } AttributeKey(Class<T> attributeType, String attributeName); static AttributeKey<T> createKey(Class<T> attributeType, String attributeName); String getName(); Class<T> getType(); @Override int hashCode(); @Override boolean equals(Object obj); }
AttributeKey { public Class<T> getType() { return attributeType; } AttributeKey(Class<T> attributeType, String attributeName); static AttributeKey<T> createKey(Class<T> attributeType, String attributeName); String getName(); Class<T> getType(); @Override int hashCode(); @Override boolean equals(Object obj);  }