All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fair_acc.sample.financial.dos.AbsorptionClusterDO Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy