Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/337#discussion_r159261113
  
    --- Diff: jena-base/src/main/java/org/apache/jena/atlas/lib/Pair.java ---
    @@ -37,6 +40,30 @@
         public A car() { return a ; }
         public B cdr() { return b ; }
         
    +    public static class OfSameType<T> extends Pair<T, T> {
    +
    --- End diff --
    
    To be clear, it has to do with `Pair` insofar as it subclasses `Pair`. The 
idea is to
    1. restrict `Pair` to `Pair`s with both elements of the same type and
    2. offer some convenience methods that only make sense when both halves of 
a pair are the same type.
    
    I've broken it out as a separate class, but I'm still up for turning it 
into a couple of functions. I just don't want to do that until I understand 
your third point better.


---

Reply via email to