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

org.qbicc.plugin.metrics.CountMetric Maven / Gradle / Ivy

There is a newer version: 0.77.0
Show newest version
package org.qbicc.plugin.metrics;

public final class CountMetric extends Metric {
    CountMetric(String name, CountMetric parent) {
        super(name, parent);
    }

    @Override
    CountMetric constructChild(String name) {
        return new CountMetric(name, this);
    }

    public void add(long amount) {
        addRawValue(amount);
    }

    @Override
    String getDescription() {
        return "Count";
    }

    @Override
    public StringBuilder getFormattedValue(StringBuilder target) {
        return target.append(Long.toUnsignedString(getRawValue()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy