Inconsistent Primitive Wrapper Classes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 1.4.0
    • Affects Version/s: 1.1, 1.2.2
    • Component/s: core-libs
    • None
    • merlin
    • generic, x86
    • generic, windows_nt



      Name: mc57594 Date: 02/11/97


      for consistency's sake, can we get static methods in Each
      of the primative wrapper classes that turn the primative type
      into a string? For example,

      I can turn a integer into a string:
      String s = Integer.toString(10);

      But I cannot turn a character into a string like this:
      String s = Character.toString('c');

      Nor can I with booleans:
      String s = Boolean.toString(true);

      If we had all of these methods, it would be wonderfully consistent.

      -Robert Temple
      company - Starwave Corporation , email - ###@###.###
      ======================================================================

            Assignee:
            Michael Mccloskey (Inactive)
            Reporter:
            Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: