Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for statement (0.19 sec)

  1. guava/src/com/google/common/collect/Cut.java

          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
        BoundType typeAsUpperBound() {
          throw new IllegalStateException();
        }
    
        @Override
        Cut<Comparable<?>> withLowerBoundType(
            BoundType boundType, DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Cut.java

          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
        BoundType typeAsUpperBound() {
          throw new IllegalStateException();
        }
    
        @Override
        Cut<Comparable<?>> withLowerBoundType(
            BoundType boundType, DiscreteDomain<Comparable<?>> domain) {
          throw new AssertionError("this statement should be unreachable");
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      interface Y {}
    
      static class A implements X, Y {}
    
      static class B implements X, Y {}
    
      /**
       * This test passes if the {@code concat(…).filter(…).filter(…)} statement at the end compiles.
       * That statement compiles only if {@link FluentIterable#concat concat(aIterable, bIterable)}
       * returns a {@link FluentIterable} of elements of an anonymous type whose supertypes are the <a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

          for (int l = nextPermutation.size() - 1; l > j; l--) {
            if (comparator.compare(ak, nextPermutation.get(l)) < 0) {
              return l;
            }
          }
          throw new AssertionError("this statement should be unreachable");
        }
      }
    
      /**
       * Returns a {@link Collection} of all the permutations of the specified {@link Collection}.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * } finally {
     *   monitor.leave();
     * }
     * }</pre>
     *
     * <p>A call to any of the <i>enter</i> methods with <b>boolean</b> return type should always appear
     * as the condition of an <i>if</i> statement containing a <i>try/finally</i> block to ensure that
     * the current thread leaves the monitor cleanly:
     *
     * <pre>{@code
     * if (monitor.tryEnter()) {
     *   try {
     *     // do things while occupying the monitor
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractService.java

                enqueueStoppingEvent(RUNNING);
                doStop();
                break;
              case STOPPING:
              case TERMINATED:
              case FAILED:
                // These cases are impossible due to the if statement above.
                throw new AssertionError("isStoppable is incorrectly implemented, saw: " + previous);
            }
          } catch (Throwable shutdownFailure) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Collections2.java

          for (int l = nextPermutation.size() - 1; l > j; l--) {
            if (comparator.compare(ak, nextPermutation.get(l)) < 0) {
              return l;
            }
          }
          throw new AssertionError("this statement should be unreachable");
        }
      }
    
      /**
       * Returns a {@link Collection} of all the permutations of the specified {@link Collection}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Closer.java

     * {@linkplain #close closed}. This is intended to approximately emulate the behavior of Java 7's <a
     * href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
     * >try-with-resources</a> statement in JDK6-compatible code. Running on Java 7, code using this
     * should be approximately equivalent in behavior to the same code written with try-with-resources.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertTrue(Iterables.elementsEqual(LegacyComparable.VALUES_FORWARD, set));
      }
    
      public void testLegacyComparable_builder_natural() {
        // Note: IntelliJ wrongly reports an error for this statement
        ImmutableSortedSet.Builder<LegacyComparable> builder =
            ImmutableSortedSet.<LegacyComparable>naturalOrder();
    
        builder.addAll(LegacyComparable.VALUES_BACKWARD);
        builder.add(LegacyComparable.X);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheBuilder.java

       * simply use the standard method-chaining idiom, as illustrated in the documentation at top,
       * configuring a {@code CacheBuilder} and building your {@link Cache} all in a single statement.
       *
       * <p><b>Warning:</b> if you ignore the above advice, and use this {@code CacheBuilder} to build a
       * cache whose key or value type is incompatible with the weigher, you will likely experience a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
Back to top