public abstract class AbstractTableFormat extends Object
Abstract class for API table format. All implementing classes should specify an instance variable which contains the data which should be operated on by the methods.
Constructor and Description |
---|
AbstractTableFormat() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getKeys()
Extracts the values for a key from the data.
|
abstract Map<String,Collection<String>> |
getPairs()
Extracts the keys and their respective values from the data.
|
List<String> |
getValues(String key)
Extracts the codes from the data.
|
public abstract Map<String,Collection<String>> getPairs()
Extracts the keys and their respective values from the data.
Map
of all keys and their respective valuespublic List<String> getKeys()
Extracts the values for a key from the data.
List
of valuesCopyright © 2017. All rights reserved.