Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for defaults (0.23 sec)

  1. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        checkArgument(type != implementation, "Don't register %s to itself!", type);
        checkArgument(
            !DEFAULTS.containsKey(type), "A default value was already registered for %s", type);
        checkArgument(
            implementations.put(type, implementation) == null,
            "Implementation for %s was already registered",
            type);
      }
    
      static {
        setImplementation(Appendable.class, StringBuilder.class);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        checkArgument(type != implementation, "Don't register %s to itself!", type);
        checkArgument(
            !DEFAULTS.containsKey(type), "A default value was already registered for %s", type);
        checkArgument(
            implementations.put(type, implementation) == null,
            "Implementation for %s was already registered",
            type);
      }
    
      static {
        setImplementation(Appendable.class, StringBuilder.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

      /**
       * Returns the element at the specified position in an iterable or a default value otherwise.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * stream.skip(position).findFirst().orElse(defaultValue)} (returns the default value if the index
       * is out of bounds)
       *
       * @param position position of the element to return
       * @param defaultValue the default value to return if {@code position} is greater than or equal to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

            // requireNonNull is safe because the first `size` elements have been filled in.
            Entry<K, V> onlyEntry = requireNonNull(entryArray[0]);
            return of(comparator, onlyEntry.getKey(), onlyEntry.getValue());
          default:
            Object[] keys = new Object[size];
            Object[] values = new Object[size];
            if (sameComparator) {
              // Need to check for nulls, but don't need to sort or validate.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

      /**
       * Returns the expected number of distinct elements given the specified elements. The number of
       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
          return ((Multiset<?>) elements).elementSet().size();
        }
    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)
  6. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

     */
    // TODO(benyu): benchmark and optimize all creation paths, which are a mess now
    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    public abstract class ImmutableSortedSet<E> extends ImmutableSet<E>
        implements NavigableSet<E>, SortedIterable<E> {
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

        ImmutableSet<K> result = keySet;
        return (result == null) ? keySet = createKeySet() : result;
      }
    
      /*
       * This could have a good default implementation of return new ImmutableKeySet<K, V>(this),
       * but ProGuard can't figure out how to eliminate that default when RegularImmutableMap
       * overrides it.
       */
      abstract ImmutableSet<K> createKeySet();
    
      UnmodifiableIterator<K> keyIterator() {
    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)
  8. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      //   and we could use that to make a decision about whether or not we timed out prior to being
      //   unparked.
    
      /**
       * {@inheritDoc}
       *
       * <p>The default {@link AbstractFuture} implementation throws {@code InterruptedException} if the
       * current thread is interrupted during the call, even if the value is already available.
       *
       * @throws CancellationException {@inheritDoc}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  9. .github/workflows/scorecard.yml

    # by a third-party and are governed by separate terms of service, privacy
    # policy, and support documentation.
    
    name: Scorecard supply-chain security
    on:
      # For Branch-Protection check. Only the default branch is supported. See
      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
      branch_protection_rule:
      # To guarantee Maintained check is occasionally updated. See
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 29 23:37:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableTable.java

       *         .put(1, 'A', "foo")
       *         .put(1, 'B', "bar")
       *         .put(2, 'A', "baz")
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>By default, the order in which cells are added to the builder determines the iteration
       * ordering of all views in the returned table, with {@link #putAll} following the {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top