Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 531 for checkNotNull (0.07 seconds)

  1. android/guava/src/com/google/common/base/Verify.java

       * message otherwise.
       *
       * @return {@code reference}, guaranteed to be non-null, for convenience
       * @throws VerifyException if {@code reference} is {@code null}
       * @see Preconditions#checkNotNull Preconditions.checkNotNull()
       */
      @CanIgnoreReturnValue
      public static <T> T verifyNotNull(@Nullable T reference) {
        return verifyNotNull(reference, "expected a non-null reference");
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 29 17:36:00 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/TestPlatform.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.util.concurrent.FuturesTest.pseudoTimedGetUninterruptibly;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/MediaType.java

        return mediaType;
      }
    
      private static MediaType create(
          String type, String subtype, Multimap<String, String> parameters) {
        checkNotNull(type);
        checkNotNull(subtype);
        checkNotNull(parameters);
        String normalizedType = normalizeToken(type);
        String normalizedSubtype = normalizeToken(subtype);
        checkArgument(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/base/Optional.java

       */
      public static <T> Iterable<T> presentInstances(
          Iterable<? extends Optional<? extends T>> optionals) {
        checkNotNull(optionals);
        return () ->
            new AbstractIterator<T>() {
              private final Iterator<? extends Optional<? extends T>> iterator =
                  checkNotNull(optionals.iterator());
    
              @Override
              protected @Nullable T computeNext() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

       *
       * @deprecated no need to use this
       */
      @InlineMe(
          replacement = "checkNotNull(graph)",
          staticImports = "com.google.common.base.Preconditions.checkNotNull")
      @Deprecated
      public static <N, V> ImmutableValueGraph<N, V> copyOf(ImmutableValueGraph<N, V> graph) {
        return checkNotNull(graph);
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return ElementOrder.stable();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

              Comparator<? super E> comparator,
              Function<? super T, ? extends E> elementFunction,
              ToIntFunction<? super T> countFunction) {
        checkNotNull(comparator);
        checkNotNull(elementFunction);
        checkNotNull(countFunction);
        return Collector.of(
            () -> TreeMultiset.create(comparator),
            (multiset, t) -> mapAndAdd(t, multiset, elementFunction, countFunction),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 35.2K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.Executors.newCachedThreadPool;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static junit.framework.Assert.assertEquals;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/Tables.java

        final Table<R, C, V1> fromTable;
        final Function<? super V1, V2> function;
    
        TransformedTable(Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
          this.fromTable = checkNotNull(fromTable);
          this.function = checkNotNull(function);
        }
    
        @Override
        public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
          return fromTable.contains(rowKey, columnKey);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 24.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Tables.java

        final Table<R, C, V1> fromTable;
        final Function<? super V1, V2> function;
    
        TransformedTable(Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
          this.fromTable = checkNotNull(fromTable);
          this.function = checkNotNull(function);
        }
    
        @Override
        public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
          return fromTable.contains(rowKey, columnKey);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 25.3K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/io/TestInputStream.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.io.TestOption.CLOSE_THROWS;
    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
Back to Top