io.fair_acc.sample.financial.dos.AbsorptionClusterDO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of samples Show documentation
Show all versions of samples Show documentation
Small sample applications to showcase the features of the chart-fx library.
The newest version!
package io.fair_acc.sample.financial.dos;
import java.util.LinkedHashSet;
import java.util.Set;
public class AbsorptionClusterDO {
// ordered from bottom to top
private final Set> bidClusters = new LinkedHashSet<>();
// ordered from top to bottom
private final Set> askClusters = new LinkedHashSet<>();
public void addBidCluster(Interval cluster) {
bidClusters.add(cluster);
}
public void addAskCluster(Interval cluster) {
askClusters.add(cluster);
}
public Set> getBidClusters() {
return bidClusters;
}
public Set> getAskClusters() {
return askClusters;
}
}