Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for jquery (0.16 sec)

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

         * e.g. hash codes adversarially designed to go into ascending table locations, which keeps
         * construction O(n) (as desired) but then can have O(n) queries later.
         *
         * <p>If this returns false, then no query can take more than O(log n).
         *
         * <p>Note that for a RegularImmutableSet with elements with truly random hash codes, contains
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

       */
      Collection<V> createCollection(@ParametricNullness K key) {
        return createCollection();
      }
    
      Map<K, Collection<V>> backingMap() {
        return map;
      }
    
      // Query Operations
    
      @Override
      public int size() {
        return totalSize;
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return map.containsKey(key);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          frequency.set(0);
        }
        backingMap.clear();
        size = 0L;
      }
    
      @Override
      int distinctElements() {
        return backingMap.size();
      }
    
      // Optimizations - Query Operations
    
      @Override
      public int size() {
        return Ints.saturatedCast(size);
      }
    
      @Override
      public Iterator<E> iterator() {
        return new MapBasedMultisetIterator();
      }
    
      /*
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multiset.java

     * may never contain more than {@link Integer#MAX_VALUE} occurrences of any one element.
     *
     * <p>{@code Multiset} refines the specifications of several methods from {@code Collection}. It
     * also defines an additional query operation, {@link #count}, which returns the count of an
     * element. There are five new bulk-modification operations, for example {@link #add(Object, int)},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractBiMap.java

      }
    
      AbstractBiMap<V, K> makeInverse(Map<V, K> backward) {
        return new Inverse<>(backward, this);
      }
    
      void setInverse(AbstractBiMap<V, K> inverse) {
        this.inverse = inverse;
      }
    
      // Query Operations (optimizations)
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
        return inverse.containsKey(value);
      }
    
      // Modification Operations
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        }
    
        @VisibleForTesting
        OldConcurrentHashMultiset(ConcurrentMap<E, Integer> countMap) {
          checkArgument(countMap.isEmpty());
          this.countMap = countMap;
        }
    
        // Query Operations
    
        /**
         * Returns the number of occurrences of {@code element} in this multiset.
         *
         * @param element the element to look for
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

              expectEnclose = true;
              break;
            }
          }
    
          assertEquals(
              rangeSet + " was incorrect on encloses(" + query + ")",
              expectEnclose,
              rangeSet.encloses(query));
          assertEquals(
              rangeSet + " was incorrect on enclosesAll([" + query + "])",
              expectEnclose,
              rangeSet.enclosesAll(ImmutableList.of(query)));
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      @VisibleForTesting
      ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) {
        checkArgument(countMap.isEmpty(), "the backing map (%s) must be empty", countMap);
        this.countMap = countMap;
      }
    
      // Query Operations
    
      /**
       * Returns the number of occurrences of {@code element} in this multiset.
       *
       * @param element the element to look for
       * @return the nonnegative number of occurrences of the element
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                assertEquals(expected.get(i), subRangeMap.get(i));
              }
    
              for (Range<Integer> query : RANGES) {
                assertEquals(
                    expected.asMapOfRanges().get(query), subRangeMap.asMapOfRanges().get(query));
              }
            }
          }
        }
      }
    
      public void testSubSubRangeMap() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Tables.java

        }
      }
    
      /**
       * Returns an unmodifiable view of the specified table. This method allows modules to provide
       * users with "read-only" access to internal tables. Query operations on the returned table "read
       * through" to the specified table, and attempts to modify the returned table, whether direct or
       * via its collection views, result in an {@code UnsupportedOperationException}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
Back to top