@Test public void testGraphAttributeCreationWithIntegerValue() { Name name = TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME; Integer attributeValue = 1; Metadata metadata = new MockMetadata(); GraphAttribute graphAttribute = new GraphAttribute(name, attributeValue, metadata); assertValues(name, metadata, graphAttribute); assertEquals(graphAttribute.getInteger(), attributeValue); }
@Override public Integer getInteger() { return TypeConverter.asInt(attributeValue); }
GraphAttribute implements Attribute { @Override public Integer getInteger() { return TypeConverter.asInt(attributeValue); } }
GraphAttribute implements Attribute { @Override public Integer getInteger() { return TypeConverter.asInt(attributeValue); } <T> GraphAttribute(Name name, Object attributeValue, 
            Attribute.Metadata metadata); }
GraphAttribute implements Attribute { @Override public Integer getInteger() { return TypeConverter.asInt(attributeValue); } <T> GraphAttribute(Name name, Object attributeValue, 
            Attribute.Metadata metadata); @Override Metadata getMetadata(); @Override Name getName(); @Override V getValue(Class<V> clazz); @Override Integer getInteger(); @Override Double getDouble(); @Override Boolean getBoolean(); @Override String getString(); @Override Instant getInstant(); @Override UUID getUUID(); }
GraphAttribute implements Attribute { @Override public Integer getInteger() { return TypeConverter.asInt(attributeValue); } <T> GraphAttribute(Name name, Object attributeValue, 
            Attribute.Metadata metadata); @Override Metadata getMetadata(); @Override Name getName(); @Override V getValue(Class<V> clazz); @Override Integer getInteger(); @Override Double getDouble(); @Override Boolean getBoolean(); @Override String getString(); @Override Instant getInstant(); @Override UUID getUUID();  }