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

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Patch Needed
    • Component/s: lang.mutable.*
    • Labels:
      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

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

              Dates

              • Created:
                Updated: