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

de.schegge.bitrate.BitrateSystemOfUnitsService Maven / Gradle / Ivy

The newest version!
package de.schegge.bitrate;

import javax.measure.spi.SystemOfUnits;
import javax.measure.spi.SystemOfUnitsService;
import java.util.Collection;
import java.util.Collections;

public class BitrateSystemOfUnitsService implements SystemOfUnitsService {

    @Override
    public SystemOfUnits getSystemOfUnits() {
        return BitrateUnits.INSTANCE;
    }


    @Override
    public Collection getAvailableSystemsOfUnits() {
        return Collections.singleton(BitrateUnits.INSTANCE);
    }

    @Override
    public SystemOfUnits getSystemOfUnits(String name) {
        return BitrateUnits.class.getSimpleName().equals(name) ? BitrateUnits.INSTANCE : null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy