src/com/google/javascript/rhino/jstype/UnionType.java
/**
   * Returns whether everything in {@code universe} matches {@code predicate}.
   *
   * <p>This method is designed to minimize allocations since it is expected to be called
   * <em>very</em> often. That's why is doesn't:
   *
   * <ul>
   *   <li>instantiate {@link Iterator}s
   *   <li>instantiate {@link Stream}s
   *   <li>(un)box primitives
   *   <li>expect closure generating lambdas
   * </ul>
   */
Returns whether everything in  universe matches  predicate.
This method is designed to minimize allocations since it is expected to be called
very often. That's why is doesn't.


instantiate  Iterators
instantiate  Streams
(un)box primitives
expect closure generating lambdas

Returns whether everything in universe matches predicate . This method is designed to minimize allocations since it is expected to be called very often . That ' s why is doesn ' t . instantiate Iterators instantiate Streams ( un ) box primitives expect closure generating lambdas
private static boolean allMatch(Predicate<JSType> predicate, ImmutableList<JSType> universe) {
    for (int i = 0; i < universe.size(); i++) {
      if (!predicate.test(universe.get(i))) {
        return false;
      }
    }
    return true;
  }
private static boolean allMatch ( Predicate < JSType > predicate , ImmutableList < JSType > universe ) { for ( int i = 0 ; i < universe . size ( ) ; i ++ ) { if ( ! predicate . test ( universe . get ( i ) ) ) { return false ; } } return true ; }
Returns whether everything in {@code universe} matches {@code predicate}.
Returns whether everything in { @code universe } matches { @code predicate } .