Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for statement (0.17 sec)

  1. guava/src/com/google/common/base/Throwables.java

       *
       * <p>This method always throws an exception. The {@code RuntimeException} return type allows
       * client code to signal to the compiler that statements after the call are unreachable. Example
       * usage:
       *
       * <pre>
       * T doSomething() {
       *   try {
       *     return someMethodThatCouldThrowAnything();
       *   } catch (IKnowWhatToDoWithThisException e) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Throwables.java

       *
       * <p>This method always throws an exception. The {@code RuntimeException} return type allows
       * client code to signal to the compiler that statements after the call are unreachable. Example
       * usage:
       *
       * <pre>
       * T doSomething() {
       *   try {
       *     return someMethodThatCouldThrowAnything();
       *   } catch (IKnowWhatToDoWithThisException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

        long guess = (long) Math.sqrt((double) x);
        // Note: guess is always <= FLOOR_SQRT_MAX_LONG.
        long guessSquared = guess * guess;
        // Note (2013-2-26): benchmarks indicate that, inscrutably enough, using if statements is
        // faster here than using lessThanBranchFree.
        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(guessSquared == x);
            return guess;
          case FLOOR:
          case DOWN:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeToken.java

            getRawType().isAssignableFrom(subclass), "%s isn't a subclass of %s", subclass, this);
        Type resolvedTypeArgs = resolveTypeArgsForSubclass(subclass);
        @SuppressWarnings("unchecked") // guarded by the isAssignableFrom() statement above
        TypeToken<? extends T> subtype = (TypeToken<? extends T>) of(resolvedTypeArgs);
        checkArgument(
            subtype.isSubtypeOf(this), "%s does not appear to be a subtype of %s", subtype, this);
        return subtype;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/NullnessCasts.java

       * without having to add {@code @SuppressWarnings}, the code can call this method.
       *
       * <p>Why <i>not</i> just add {@code SuppressWarnings}? The problem is that this method is
       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractIterator.java

       * elements left in the iteration.
       *
       * @return {@code null}; a convenience so your {@code computeNext} implementation can use the
       *     simple statement {@code return endOfData();}
       */
      @CanIgnoreReturnValue
      @CheckForNull
      protected final T endOfData() {
        state = State.DONE;
        return null;
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/NullnessCasts.java

       * without having to add {@code @SuppressWarnings}, the code can call this method.
       *
       * <p>Why <i>not</i> just add {@code SuppressWarnings}? The problem is that this method is
       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/Traverser.java

              while (top.hasNext()) {
                N element = top.next();
                // requireNonNull is safe because horizon contains only graph nodes.
                /*
                 * TODO(cpovirk): Replace these two statements with one (`N element =
                 * requireNonNull(top.next())`) once our checker supports it.
                 *
                 * (The problem is likely
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Ordering.java

       * Collections#reverseOrder(Comparator)}.
       *
       * <p><b>Java 8+ users:</b> Use {@code thisComparator.reversed()} instead.
       */
      // type parameter <S> lets us avoid the extra <String> in statements like:
      // Ordering<String> o = Ordering.<String>natural().reverse();
      @GwtCompatible(serializable = true)
      public <S extends T> Ordering<S> reverse() {
        return new ReverseOrdering<>(this);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  10. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
Back to top