Class IndexAttribute

java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.vanted.indexednodes.IndexAttribute
All Implemented Interfaces:
Attribute, DeepCopy, Displayable

public class IndexAttribute
extends AbstractAttribute
Stores indices for nodes to allow fast index finding.
Since:
2.8
Author:
Benjamin Moser
  • Method Details

    • setDefaultValue

      public void setDefaultValue()
      Description copied from interface: Attribute
      The attribute's value is set so that its getValue() method will not return null.
    • getValue

      public Object getValue()
      Description copied from interface: Attribute
      Returns the value of this Attribute. If the value is set via att.setValue(x) and then retrieved via y = att.getValue() it is only guaranteed that x.equals(y) not x==y, i.e. some particular implementations can provide x==y but this behaviour is not general, in contrast x.equals(y) must be always guaranteed. See documentation of particular implementations of this interface for exact specification of this method's behaviour!
      Returns:
      the value of this Attribute.
    • copy

      public Object copy()
      Description copied from interface: DeepCopy
      Returns a deep copy of this object.
      Returns:
      A deep copy of this object.