JAL-1807 disambiguated method signatures with numeric primitive args
[jalview.git] / src / jalview / util / Format.java
index d14e4ad..1c8e444 100755 (executable)
@@ -309,9 +309,9 @@ public class Format
    * @param x
    *          the double to print
    */
-  public static void print(java.io.PrintStream s, String fmt, double x)
+  public static void printDouble(java.io.PrintStream s, String fmt, double x)
   {
-    s.print(new Format(fmt).form(x));
+    s.print(new Format(fmt).formDouble(x));
   }
 
   /**
@@ -324,9 +324,9 @@ public class Format
    * @param x
    *          the long to print
    */
-  public static void print(java.io.PrintStream s, String fmt, long x)
+  public static void printLong(java.io.PrintStream s, String fmt, long x)
   {
-    s.print(new Format(fmt).form(x));
+    s.print(new Format(fmt).formLong(x));
   }
 
   /**
@@ -339,9 +339,9 @@ public class Format
    * @param x
    *          the character to
    */
-  public static void print(java.io.PrintStream s, String fmt, char x)
+  public static void printChar(java.io.PrintStream s, String fmt, char x)
   {
-    s.print(new Format(fmt).form(x));
+    s.print(new Format(fmt).formChar(x));
   }
 
   /**
@@ -544,7 +544,7 @@ public class Format
    * @exception IllegalArgumentException
    *              if bad argument
    */
-  public String form(double x)
+  public String formDouble(double x)
   {
     String r;
 
@@ -584,7 +584,7 @@ public class Format
    *          the number to format
    * @return the formatted string
    */
-  public String form(long x)
+  public String formLong(long x)
   {
     String r;
     int s = 0;
@@ -629,7 +629,7 @@ public class Format
    *          the value to format
    * @return the formatted string
    */
-  public String form(char c)
+  public String formChar(char c)
   {
     if (fmt != 'c')
     {