Class DataList

    • Constructor Detail

      • DataList

        public DataList​(List<Data> values)
        Creates new instance of given list of data
        Parameters:
        values - list to use as values, 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 String textValue()
        Specified by:
        textValue in interface Data
        Returns:
        text data value, throws exception for data which can't be represented as text
      • asList

        public List<Data> asList()
        Specified by:
        asList in interface Data
        Returns:
        this instance cast to List, may throw exception if this instance is not of kind list.