Package com.caplin.charting
Class RequestCriteria
java.lang.Object
com.caplin.charting.RequestCriteria
A RequestCriteria holds all the parameters that are part of a request for historic chart data.
-
Constructor Summary
ConstructorDescriptionRequestCriteria
(String instrument, String interval, Date start, Date end, boolean cached) -
Method Summary
-
Constructor Details
-
RequestCriteria
- Parameters:
instrument
- the instrument that this data is about. May not be null.interval
- the intervalisation of the data. For example "1h" for datapoints covering an hour each.start
- the earliest time which is being requested. May be null.end
- the latest time which is being requested. May be null.cached
- whether or not the request is for cached data or live data.
-
-
Method Details
-
getInterval
- Returns:
- the intervalisation of the data. For example "1h" for datapoints covering an hour each.
-
getStart
- Returns:
- the earliest time which is being requested. May be null.
-
getEnd
- Returns:
- the latest time which is being requested. May be null.
-
getInstrument
- Returns:
- the instrument that this data is about. May not be null.
-
isCached
public boolean isCached()- Returns:
- true if this request is for cached data, false otherwise.
-
toString
-