Package org.opennms.core.utils
Class SIUtils
- java.lang.Object
-
- org.opennms.core.utils.SIUtils
-
public abstract class SIUtils extends Object
Utilities for manipulating values in SI units. This is the International System of Units that you learned in science class. http://www.physics.nist.gov/cuu/Units/- Author:
- djgregor
-
-
Constructor Summary
Constructors Constructor Description SIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getHumanReadableIfSpeed(long ifSpeed)
Method used to convert an integer bits-per-second value to a more readable vale using commonly recognized abbreviation for network interface speeds.
-
-
-
Method Detail
-
getHumanReadableIfSpeed
public static String getHumanReadableIfSpeed(long ifSpeed)
Method used to convert an integer bits-per-second value to a more readable vale using commonly recognized abbreviation for network interface speeds. Feel free to expand it as necessary to accommodate different values.- Parameters:
ifSpeed
- The bits-per-second value to be converted into a string description- Returns:
- A string representation of the speed ("100 Mbps" for example)
-
-