langtools/src/jdk.jshell/share/classes/jdk/jshell/Util.java
changeset 34857 14d1224cfed3
parent 34752 9c262a013456
child 35000 952a7b4652f0
equal deleted inserted replaced
34856:5ca50af1b45c 34857:14d1224cfed3
    89     }
    89     }
    90 
    90 
    91     static <T> Stream<T> stream(Iterable<T> iterable) {
    91     static <T> Stream<T> stream(Iterable<T> iterable) {
    92         return StreamSupport.stream(iterable.spliterator(), false);
    92         return StreamSupport.stream(iterable.spliterator(), false);
    93     }
    93     }
       
    94 
       
    95     static class Pair<T, U> {
       
    96         final T first;
       
    97         final U second;
       
    98 
       
    99         Pair(T first, U second) {
       
   100             this.first = first;
       
   101             this.second = second;
       
   102         }
       
   103     }
    94 }
   104 }