de.schegge.bitrate.BitrateSystemOfUnitsService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-bitrate-support Show documentation
Show all versions of jackson-bitrate-support Show documentation
Jackson Module for Bitrate Support
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