Class DataValue

  • All Implemented Interfaces:
    Data

    public class DataValue
    extends java.lang.Object
    implements Data
    Simple value type of Data. Wrapper of textual value.
    • Nested Class Summary

    • Field Summary

      • Fields inherited from interface com.gooddata.sdk.model.executeafm.result.Data

        NULL
    • Constructor Summary

      Constructors 
      Constructor Description
      DataValue​(java.lang.String value)
      Creates new instance of given value.
    • Constructor Detail

      • DataValue

        public DataValue​(java.lang.String value)
        Creates new instance of given value.
        Parameters:
        value - textual value, can't be null
    • Method Detail

      • isList

        public boolean isList()
        Specified by:
        isList in interface Data
        Returns:
        true if this instance is of kind list, false otherwise
      • isValue

        public boolean isValue()
        Specified by:
        isValue in interface Data
        Returns:
        true if this instance is of kind value, false otherwise
      • textValue

        public java.lang.String textValue()
        Specified by:
        textValue in interface Data
        Returns:
        text data value, throws exception for data which can't be represented as text
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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