Added some javadoc

This commit is contained in:
7u83
2017-03-27 01:31:55 +02:00
parent 27aee1c43c
commit 2a5f9070e3
2 changed files with 81 additions and 106 deletions

View File

@ -43,6 +43,11 @@ public class OHLCData {
}
/**
* Create an OHLCData object that stores OHLCDataItems
*
* @param frame_size Time frame stored in one OHLCDataItem
*/
public OHLCData(int frame_size) {
this.frame_size = frame_size;
@ -60,10 +65,20 @@ public class OHLCData {
return data.size();
}
/**
*
* @return Time frame of OHLCDataItem
*/
public int getFrameSize() {
return this.frame_size;
}
/**
* Get the minimum and maximum value between two OHLCDataItems
* @param first Position of first OHLCDataItem
* @param last Position of last OHCLDataItem
* @return MinMax object containing the calculated values
*/
public MinMax getMinMax(int first, int last) {
if (first >= data.size()) {