Interface ITableFormat

  • All Known Implementing Classes:
    JsonAPIConfigTableFormat, JsonAPITableFormat

    public interface ITableFormat

    Interface which contains operations for working with API table format. All implementing classes should specify an instance variable which contains the data which should be operated on by the methods.

    Since:
    0.7.0
    • Method Detail

      • getPairs

        Map<String,​Collection<String>> getPairs()

        Extracts the keys and their respective values from the data.

        Returns:
        a Map of all keys and their respective values
      • getKeys

        default List<String> getKeys()

        Extracts the values for a key from the data.

        Returns:
        a List of values
      • getValues

        default List<String> getValues​(String key)

        Extracts the codes from the data.

        Parameters:
        key - the key
        Returns:
        a List of keys