Class 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 Detail

      • SIUtils

        public SIUtils()
    • 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)