Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 317 for nilable (0.14 sec)

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

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class HashBiMap<K extends @Nullable Object, V extends @Nullable Object>
        extends IteratorBasedAbstractMap<K, V> implements BiMap<K, V>, Serializable {
    
      /** Returns a new, empty {@code HashBiMap} with the default initial capacity (16). */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create() {
        return create(16);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

      @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"})
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      @Beta // TODO: b/288085449 - Remove.
      public static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
              ToIntFunction<? super T> countFunction,
              Supplier<M> multisetSupplier) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        assertMultimapRemainsUnmodified(multimap, originalEntries);
      }
    
      private static <E extends @Nullable Object> void assertCollectionsAreEquivalent(
          Collection<E> expected, Collection<E> actual) {
        assertIteratorsInOrder(expected.iterator(), actual.iterator());
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object>
          void assertMultimapRemainsUnmodified(Multimap<K, V> expected, List<Entry<K, V>> actual) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      // stored in the builder, which may use it to throw an exception later.
      static <K, V> RegularImmutableMap<K, V> create(
          int n, @Nullable Object[] alternatingKeysAndValues, @Nullable Builder<K, V> builder) {
        if (n == 0) {
          @SuppressWarnings("unchecked")
          RegularImmutableMap<K, V> empty = (RegularImmutableMap<K, V>) EMPTY;
          return empty;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class HashBiMap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMap<K, V> implements BiMap<K, V>, Serializable {
    
      /** Returns a new, empty {@code HashBiMap} with the default initial capacity (16). */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create() {
        return create(16);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                  }
    
                  @Override
                  public boolean equals(@Nullable Object o) {
                    return map.equals(o);
                  }
    
                  @Override
                  public String toString() {
                    return map.toString();
                  }
    
                  @Override
                  public @Nullable String remove(Object key) {
                    return map.remove(key);
                  }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        @Override
        public boolean equals(@Nullable Object o) {
          return false;
        }
    
        @Override
        public int hashCode() {
          return super.hashCode();
        }
      }
    
      /** Test class that returns true if the test object is null */
      private static class InvalidEqualsNullObject {
    
        @Override
        public boolean equals(@Nullable Object o) {
          return o == this || o == null;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                  }
    
                  @Override
                  public boolean equals(@Nullable Object o) {
                    return map.equals(o);
                  }
    
                  @Override
                  public String toString() {
                    return map.toString();
                  }
    
                  @Override
                  public @Nullable String remove(Object key) {
                    return map.remove(key);
                  }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

          Optional<String> unused =
              Optional.of("a")
                  .transform(
                      (Function<String, String>)
                          new Function<String, @Nullable String>() {
                            @Override
                            public @Nullable String apply(String input) {
                              return null;
                            }
                          });
          fail("Should throw if Function returns null.");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          final Runnable runnable;
          final Executor executor;
          // Volatile because this is written on one thread and read on another with no synchronization.
          @Nullable volatile RunnableExecutorPair next;
    
          RunnableExecutorPair(@Nullable Runnable runnable, @Nullable Executor executor) {
            this.runnable = runnable;
            this.executor = executor;
          }
    
          void execute() {
            try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
Back to top