Class Attribute


  • public final class Attribute
    extends java.lang.Object
    An attribute representing a characteristic.
    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute​(long id, java.lang.Object value)  
    • Constructor Detail

      • Attribute

        public Attribute​(long id,
                         java.lang.Object value)
    • Method Detail

      • getId

        public long getId()
        Gets the identifier of the attribute
      • getAsObject

        @NonNull
        public @NonNull java.lang.Object getAsObject()
        Gets the value of this characteristic
      • getAsInteger

        @Nullable
        public java.lang.Integer getAsInteger()
        Gets the value of this attribute and casts it to an Integer
      • isInteger

        public boolean isInteger()
        Checks whether the attributes value is an Integer
      • getAsString

        @Nullable
        public java.lang.String getAsString()
      • isString

        public boolean isString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object