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

Create a basic Pair<L, R> class

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.*
    • None

    Description

      [lang] is the perfect place to provide a basic typed Pair class. I have written such a class for my employer (who hasn't?) but can/will rewrite blind to avoid IP issues. I think it's also nice to go ahead and extend this to MatchedPair<T> extends Pair<T, T> as well.

      Attachments

        1. Pair.java
          3 kB
          Henri Yandell
        2. Pair.java
          3 kB
          Matthew Jason Benson
        3. PairTest.java
          3 kB
          Henri Yandell
        4. PairTest.java
          3 kB
          Matthew Jason Benson

        Activity

          People

            Unassigned Unassigned
            mbenson Matthew Jason Benson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: