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

com.lumiomedical.flow.impl.pipeline.runtime.heap.Counter Maven / Gradle / Ivy

package com.lumiomedical.flow.impl.pipeline.runtime.heap;

/**
 * @author Pierre Lecerf ([email protected])
 * Created on 2020/03/03
 */
public class Counter
{
    private final Object value;
    private int count;

    public Counter(Object value, int counter)
    {
        this.value = value;
        this.count = counter;
    }

    /**
     *
     * @return
     */
    public Counter decrement()
    {
        this.count--;
        return this;
    }

    /**
     *
     * @return
     */
    public Object getValue()
    {
        return this.value;
    }

    /**
     *
     * @return
     */
    public int getCount()
    {
        return this.count;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy