src/com/google/javascript/rhino/jstype/UnionType.java
/**
   * Returns whether anything 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 anything 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 anything 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 anyMatch(Predicate<JSType> predicate, ImmutableList<JSType> universe) {
    for (int i = 0; i < universe.size(); i++) {
      if (predicate.test(universe.get(i))) {
        return true;
      }
    }
    return false;
  }
private static boolean anyMatch ( Predicate < JSType > predicate , ImmutableList < JSType > universe ) { for ( int i = 0 ; i < universe . size ( ) ; i ++ ) { if ( predicate . test ( universe . get ( i ) ) ) { return true ; } } return false ; }
Returns whether anything in {@code universe} matches {@code predicate}.
Returns whether anything in { @code universe } matches { @code predicate } .