Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for statement (0.21 sec)

  1. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. android/guava/src/com/google/common/collect/Range.java

     * ({@code [ ]}) indicates that the range is closed on that side; a parenthesis ({@code ( )}) means
     * it is either open or unbounded. The construct {@code {x | statement}} is read "the set of all
     * <i>x</i> such that <i>statement</i>.")
     *
     * <blockquote>
     *
     * <table>
     * <caption>Range Types</caption>
     * <tr><th>Notation        <th>Definition               <th>Factory method
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ComparisonChain.java

    import com.google.common.primitives.Longs;
    import java.util.Comparator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility for performing a chained comparison statement. <b>Note:</b> Java 8+ users should
     * generally prefer the methods in {@link Comparator}; see <a href="#java8">below</a>.
     *
     * <p>Example usage of {@code ComparisonChain}:
     *
     * <pre>{@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  6. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ComparisonChain.java

    import com.google.common.primitives.Longs;
    import java.util.Comparator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A utility for performing a chained comparison statement. For example:
     *
     * <pre>{@code
     * public int compareTo(Foo that) {
     *   return ComparisonChain.start()
     *       .compare(this.aString, that.aString)
     *       .compare(this.anInt, that.anInt)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  8. 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)
  9. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 12 20:58:36 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  10. 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)
Back to top