public class DapBuilder
extends java.lang.Object
Constructor and Description |
---|
DapBuilder() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildCSV(java.util.List<java.lang.String> stellen,
java.util.ArrayList<java.util.ArrayList<DateAndPrice>> dapAll)
prepares a csv string from the date-and-price lists for several notations
|
static java.util.ArrayList<DateAndPrice> |
buildDateAndPriceList(java.util.List<Item> items)
takes a list of items and generates the corresponding date-and-price list
|
static java.util.ArrayList<DateAndPrice> |
expandDateAndPriceList(java.util.List<java.lang.String> dates,
java.util.List<DateAndPrice> dapOld)
expands a date-and-price list to the given list of dates
|
static java.util.ArrayList<java.util.ArrayList<DateAndPrice>> |
harmonizeDapLists(java.util.ArrayList<java.util.ArrayList<DateAndPrice>> dapAll)
harmonizes several date-and-price lists to a common list of dates
|
public static java.util.ArrayList<DateAndPrice> buildDateAndPriceList(java.util.List<Item> items)
items
- list of itemspublic static java.util.ArrayList<DateAndPrice> expandDateAndPriceList(java.util.List<java.lang.String> dates, java.util.List<DateAndPrice> dapOld)
dapOld
- the unchanged date-and-price listdates
- a list of datespublic static java.util.ArrayList<java.util.ArrayList<DateAndPrice>> harmonizeDapLists(java.util.ArrayList<java.util.ArrayList<DateAndPrice>> dapAll)
dapAll
- an array of date-and-price listspublic static java.lang.String buildCSV(java.util.List<java.lang.String> stellen, java.util.ArrayList<java.util.ArrayList<DateAndPrice>> dapAll)
stellen
- list of notationsdapAll
- an array of date-and-price lists