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
 java.lang.String form(double value)
          Formats a double into a string (like sprintf in C).
 java.lang.String form(double[] value)
          Formats a complex (double[]) into a string (like sprintf in C).
 java.lang.String form(float value)
          Formats a float into a string (like sprintf in C).
 java.lang.String form(float[] value)
          Formats a complex (float[]) into a string (like sprintf in C).
 java.lang.String form(int value)
          Formats an int into a string (like sprintf in C).
 java.lang.String form(long value)
          Formats an long into a string (like sprintf in C).
 

Method Detail

form

java.lang.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:
java.lang.IllegalArgumentException - if bad argument

form

java.lang.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:
java.lang.IllegalArgumentException - if bad argument

form

java.lang.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:
java.lang.IllegalArgumentException - if bad argument

form

java.lang.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:
java.lang.IllegalArgumentException - if bad argument

form

java.lang.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:
java.lang.IllegalArgumentException - if bad argument

form

java.lang.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:
java.lang.IllegalArgumentException - if bad argument


jHepWork 2.8 (©) S.Chekanov