Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 458 for sizeof (0.23 sec)

  1. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

            CacheBuilder.newBuilder()
                .maximumSize(MAX_SIZE)
                .removalListener(removalListener)
                .build(loader);
        for (int i = 0; i < 2 * MAX_SIZE; i++) {
          cache.getUnchecked(i);
          assertTrue(cache.size() <= MAX_SIZE);
        }
    
        assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache));
        assertEquals(MAX_SIZE, cache.size());
        CacheTesting.processPendingNotifications(cache);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        assertEquals(Double.doubleToRawLongBits(x), Double.doubleToRawLongBits(y));
      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

        }
      }
    
      enum Topology {
        BALANCED {
          @Override
          Optional<BinaryNode> createTree(int size, Random rng) {
            if (size == 0) {
              return Optional.absent();
            } else {
              int leftChildSize = (size - 1) / 2;
              int rightChildSize = size - 1 - leftChildSize;
              return Optional.of(
                  new BinaryNode(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 26 19:18:53 GMT 2019
    - 4.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
        for (K key : keySet) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

        }
    
        ensureCapacity(size + 1);
        keys[size] = key;
        values[size] = value;
    
        insertIntoTableKToV(size, keyHash);
        insertIntoTableVToK(size, valueHash);
    
        setSucceeds(lastInInsertionOrder, size);
        setSucceeds(size, ENDPOINT);
        size++;
        modCount++;
        return null;
      }
    
      @Override
      @CanIgnoreReturnValue
    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/src/com/google/common/collect/RegularImmutableMultiset.java

      private final transient int size;
    
      @LazyInit @CheckForNull private transient ImmutableSet<E> elementSet;
    
      RegularImmutableMultiset(ObjectCountHashMap<E> contents) {
        this.contents = contents;
        long size = 0;
        for (int i = 0; i < contents.size(); i++) {
          size += contents.getValue(i);
        }
        this.size = Ints.saturatedCast(size);
      }
    
      @Override
      boolean isPartialView() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DenseImmutableTable.java

        this.values = array;
        this.rowKeyToIndex = Maps.indexMap(rowSpace);
        this.columnKeyToIndex = Maps.indexMap(columnSpace);
        rowCounts = new int[rowKeyToIndex.size()];
        columnCounts = new int[columnKeyToIndex.size()];
        int[] cellRowIndices = new int[cellList.size()];
        int[] cellColumnIndices = new int[cellList.size()];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

    public class IntMathBenchmark {
      private static int[] exponent = new int[ARRAY_SIZE];
      private static int[] factorial = new int[ARRAY_SIZE];
      private static int[] binomial = new int[ARRAY_SIZE];
      private static final int[] positive = new int[ARRAY_SIZE];
      private static final int[] nonnegative = new int[ARRAY_SIZE];
      private static final int[] ints = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Preconditions.java

        } else if (size < 0) {
          throw new IllegalArgumentException("negative size: " + size);
        } else { // index >= size
          return lenientFormat("%s (%s) must be less than size (%s)", desc, index, size);
        }
      }
    
      /**
       * Ensures that {@code index} specifies a valid <i>position</i> in an array, list or string of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        // targets.size() < size() / log(size())
        // TODO(kevinb): see if we can share code with OrderedIterator after it
        // graduates from labs.
        if (targets instanceof Multiset) {
          targets = ((Multiset<?>) targets).elementSet();
        }
        if (!SortedIterables.hasSameComparator(comparator(), targets) || (targets.size() <= 1)) {
          return super.containsAll(targets);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top