Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 476 for given (0.18 sec)

  1. android/guava/src/com/google/common/hash/HashFunction.java

       * {@code int} value, interpreted in little-endian byte order. The implementation <i>might</i>
       * perform better than its longhand equivalent, but should not perform worse.
       *
       * @since 12.0
       */
      HashCode hashInt(int input);
    
      /**
       * Shortcut for {@code newHasher().putLong(input).hash()}; returns the hash code for the given
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 25 18:22:59 GMT 2021
    - 10.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Predicate.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Legacy version of {@link java.util.function.Predicate java.util.function.Predicate}. Determines a
     * true or false value for a given input.
     *
     * <p>As this interface extends {@code java.util.function.Predicate}, an instance of this type may
     * be used as a {@code Predicate} directly. To use a {@code java.util.function.Predicate} where a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ClusterException.java

      /** See {@link #create(Collection)}. */
      static RuntimeException create(Throwable... exceptions) {
        ArrayList<Throwable> temp = new ArrayList<>(Arrays.asList(exceptions));
        return create(temp);
      }
    
      /**
       * Given a collection of exceptions, returns a {@link RuntimeException}, with the following rules:
       *
       * <ul>
       *   <li>If {@code exceptions} has a single exception and that exception is a {@link
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

        }
        while (reversedList != null) {
          executeListener(reversedList.runnable, reversedList.executor);
          reversedList = reversedList.next;
        }
      }
    
      /**
       * Submits the given runnable to the given {@link Executor} catching and logging all {@linkplain
       * RuntimeException runtime exceptions} thrown by the executor.
       */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMap.java

            new RegularImmutableSortedSet<K>(ImmutableList.of(k1), checkNotNull(comparator)),
            ImmutableList.of(v1));
      }
    
      /**
       * Returns an immutable sorted map containing the given entries, sorted by the natural ordering of
       * their keys.
       *
       * @throws IllegalArgumentException if the two keys are equal according to their natural ordering
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Predicates.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to {@code Predicate} instances.
     *
     * <p>All methods return serializable predicates as long as they're given serializable parameters.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/FunctionalExplained">the use of {@code Predicate}</a>.
     *
     * @author Kevin Bourrillion
     * @since 2.0
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        // e.g. using Thread#activeCount()
        return Math.max(10L, Runtime.getRuntime().totalMemory() / (32L * 1024L * 1024L));
      }
    
      /**
       * Waits until the given future {@linkplain Future#isDone is done}, invoking the garbage collector
       * as necessary to try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

          int i = 0;
          for (Object e : elements) {
            array[i++] = (Long) e;
          }
          return create(array);
        }
    
        /**
         * Creates a new collection containing the given elements; implement this method instead of
         * {@link #create(Object...)}.
         */
        protected abstract List<Long> create(Long[] elements);
    
        @Override
        public Long[] createArray(int length) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/EvictingQueue.java

        return delegate;
      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
       * of the queue is evicted to make room.
       *
       * @return {@code true} always
       */
      @Override
      @CanIgnoreReturnValue
      public boolean offer(E e) {
        return add(e);
      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        }
      }
    
      /** getAndSet returns previous value and sets to given value */
      public void testGetAndSet() {
        double prev = Math.E;
        AtomicDouble at = new AtomicDouble(prev);
        for (double x : VALUES) {
          assertBitEquals(prev, at.getAndSet(x));
          prev = x;
        }
      }
    
      /** getAndAdd returns previous value and adds given value */
      public void testGetAndAdd() {
        for (double x : VALUES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
Back to top