Similarly, I've used https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleEntry.html and https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html in these circumstances.
On Thu, Jul 13, 2017 at 1:29 PM Maurizio Cimadamore < maurizio.cimadam...@oracle.com> wrote: > Maybe automatic refactoring to Map.Entry ? With the new static method > added in 9, creating one is also very fluent (but I know that Entry > doesn't convey same meaning as Pair in method signatures/fields) > > http://download.java.net/java/jdk9/docs/api/java/util/Map.html#entry-K-V- > > Cheers > Maurizio > > > On 13/07/17 18:22, joe darcy wrote: > > Hi Paul, > > > > See the discussion in thread: > > > > > http://mail.openjdk.java.net/pipermail/core-libs-dev/2010-March/003973.html > > > > > http://mail.openjdk.java.net/pipermail/core-libs-dev/2010-April/thread.html > > > > > > In short, no current plans to add java.util.Pair. > > > > -Joe > > > > > > On 7/13/2017 10:07 AM, Hohensee, Paul wrote: > >> See the ancient https://bugs.openjdk.java.net/browse/JDK-4947273. > >> > >> At Amazon, many projects depend on JavaFX to get only a single class, > >> namely javafx.util.Pair. That means that we must distribute OpenJFX > >> along with our internal OpenJDK distribution, or split > >> javafx.util.Pair out into a separate package, both of which we’d like > >> to avoid in the future. So, are there any plans to add java.util.Pair > >> to JDK10? > >> > >> Thanks, > >> > >> Paul > >> > > > > -- Sent from my phone