Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 84 for Reference (0.23 sec)

  1. guava-tests/test/com/google/common/math/IntMathTest.java

      public void testLog10MatchesBigInteger() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
            // The BigInteger implementation is tested separately, use it as the reference.
            assertEquals(BigIntegerMath.log10(valueOf(x), mode), IntMath.log10(x, mode));
          }
        }
      }
    
      // Relies on the correctness of log10(int, FLOOR) and of pow(int, int).
      @GwtIncompatible // pow()
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      }
    
      /**
       * Any updates to LocalCache.Strength used in CacheBuilder need to be matched in this class for
       * compilation purposes.
       */
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

          /**
           * The service that is managing this callable. This is used so that failure can be reported
           * properly.
           */
          /*
           * This reference is part of a reference cycle, which is typically something we want to avoid
           * under j2objc -- but it is not detected by our j2objc cycle test. The cycle:
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ValueGraph.java

       * doesn't. Additionally, the order in which nodes or edges are added to the graph, and the order
       * in which they are iterated over, are irrelevant.
       *
       * <p>A reference implementation of this is provided by {@link AbstractValueGraph#equals(Object)}.
       */
      @Override
      boolean equals(@CheckForNull Object object);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(Floats.toArray(list.subList(2, 2))).isEmpty();
      }
    
      public void testAsListEmpty() {
        assertThat(Floats.asList(EMPTY)).isSameInstanceAs(Collections.emptyList());
      }
    
      /**
       * A reference implementation for {@code tryParse} that just catches the exception from {@link
       * Float#valueOf}.
       */
      private static @Nullable Float referenceTryParse(String input) {
        if (input.trim().length() < input.length()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

    public final class ExecutionSequencer {
    
      private ExecutionSequencer() {}
    
      /** Creates a new instance. */
      public static ExecutionSequencer create() {
        return new ExecutionSequencer();
      }
    
      /** This reference acts as a pointer tracking the head of a linked list of ListenableFutures. */
      private final AtomicReference<ListenableFuture<@Nullable Void>> ref =
          new AtomicReference<>(immediateVoidFuture());
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableList.java

       * immutable list is returned.)
       *
       * <p><b>Note:</b> in almost all circumstances, the returned {@link ImmutableList} retains a
       * strong reference to {@code this}, which may prevent the original list from being garbage
       * collected. If you want the original list to be eligible for garbage collection, you should
       * create and use a copy of the sub list (e.g., {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

     * TODO(user): Differentiate between directed and undirected edge strings.
     */
    public abstract class AbstractGraphTest {
    
      Graph<Integer> graph;
    
      /**
       * The same reference as {@link #graph}, except as a mutable graph. This field is null in case
       * {@link #createGraph()} didn't return a mutable graph.
       */
      MutableGraph<Integer> graphAsMutableGraph;
    
      static final Integer N1 = 1;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashingTest.java

    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link Hashing}.
     *
     * <p>TODO(b/33919189): Migrate repeated testing methods to {@link #HashTestUtils} and tweak unit
     * tests to reference them from there.
     *
     * @author Dimitris Andreou
     * @author Kurt Alfred Kluever
     */
    public class HashingTest extends TestCase {
      public void testMd5() {
        HashTestUtils.checkAvalanche(Hashing.md5(), 100, 0.4);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeBasedTable.java

              // Keep looping till we find a non-duplicate value.
              if (!duplicate) {
                lastValue = next;
                return lastValue;
              }
            }
    
            lastValue = null; // clear reference to unused data
            return endOfData();
          }
        };
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top