Former
cern.colt.matrix

Interface Former



  • public interface Former
    Formats a double or complex (double[]) into a string (like sprintf in C).
    See Also:
    Comparator, cern.colt, Sorting
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      Stringform(double value)
      Formats a double into a string (like sprintf in C).
      Stringform(double[] value)
      Formats a complex (double[]) into a string (like sprintf in C).
      Stringform(float value)
      Formats a float into a string (like sprintf in C).
      Stringform(float[] value)
      Formats a complex (float[]) into a string (like sprintf in C).
      Stringform(int value)
      Formats an int into a string (like sprintf in C).
      Stringform(long value)
      Formats an long into a string (like sprintf in C).
    • Method Detail

      • form

        String form(double value)
        Formats a double into a string (like sprintf in C).
        Parameters:
        value - the number to format
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if bad argument
      • form

        String form(float value)
        Formats a float into a string (like sprintf in C).
        Parameters:
        value - the number to format
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if bad argument
      • form

        String form(int value)
        Formats an int into a string (like sprintf in C).
        Parameters:
        value - the number to format
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if bad argument
      • form

        String form(long value)
        Formats an long into a string (like sprintf in C).
        Parameters:
        value - the number to format
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if bad argument
      • form

        String form(double[] value)
        Formats a complex (double[]) into a string (like sprintf in C).
        Parameters:
        value - the number to format
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if bad argument
      • form

        String form(float[] value)
        Formats a complex (float[]) into a string (like sprintf in C).
        Parameters:
        value - the number to format
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if bad argument

SCaVis 2.0 © jWork.ORG