Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-706

Create a MutableNumber interface with methods common to all the mutable numbers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • Patch Needed
    • lang.mutable.*
    • None

    Description

      With this interface it would be possible to perform generic operations on mutable numbers without worrying about the specific type, e.g.

      // these two could be created in a different methods
      MutableNumber m = new MutableDouble();
      Number n = ...;
      
      // this would do the right thing
      m.add(n);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcestibariz Juan Carlos Estibariz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: