Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 386 for puts (0.27 sec)

  1. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<String> bf1 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf1.put("1");
        bf1.put("2");
    
        BloomFilter<String> bf2 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf2.put("1");
        bf2.put("2");
    
        new EqualsTester().addEqualityGroup(bf1, bf2).testEquals();
    
        bf2.put("3");
    
        new EqualsTester().addEqualityGroup(bf1).addEqualityGroup(bf2).testEquals();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RangeMap.java

       *
       * <p>Specifically, after a call to {@code put(range, value)}, if {@link
       * Range#contains(Comparable) range.contains(k)}, then {@link #get(Comparable) get(k)} will return
       * {@code value}.
       *
       * <p>If {@code range} {@linkplain Range#isEmpty() is empty}, then this is a no-op.
       */
      void put(Range<K> range, V value);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/PrimitiveSink.java

      PrimitiveSink putBytes(ByteBuffer bytes);
    
      /** Puts a short into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putShort(short s);
    
      /** Puts an int into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putInt(int i);
    
      /** Puts a long into this sink. */
      @CanIgnoreReturnValue
      PrimitiveSink putLong(long l);
    
      /** Puts a float into this sink. */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/HashBiMap.java

        return (entry == ABSENT) ? null : keys[entry];
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public V put(@ParametricNullness K key, @ParametricNullness V value) {
        return put(key, value, false);
      }
    
      @CheckForNull
      V put(@ParametricNullness K key, @ParametricNullness V value, boolean force) {
        int keyHash = Hashing.smearedHash(key);
    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)
  5. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<String> bf1 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf1.put("1");
        bf1.put("2");
    
        BloomFilter<String> bf2 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf2.put("1");
        bf2.put("2");
    
        new EqualsTester().addEqualityGroup(bf1, bf2).testEquals();
    
        bf2.put("3");
    
        new EqualsTester().addEqualityGroup(bf1).addEqualityGroup(bf2).testEquals();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

        return (Multiset<T>) iterable;
      }
    
      /**
       * Returns a copy of {@code multiset} as an {@link ImmutableMultiset} whose iteration order puts
       * the highest count first, with ties broken by the iteration order of the original multiset.
       *
       * @since 11.0
       */
      public static <E> ImmutableMultiset<E> copyHighestCountFirst(Multiset<E> multiset) {
    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)
  7. guava/src/com/google/common/collect/CollectSpliterators.java

          }
    
          @Override
          public boolean tryAdvance(Consumer<? super T> action) {
            while (fromSpliterator.tryAdvance(this)) {
              try {
                // The cast is safe because tryAdvance puts a T into `holder`.
                T next = uncheckedCastNullableTToT(holder);
                if (predicate.test(next)) {
                  action.accept(next);
                  return true;
                }
              } finally {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      /** Guard for waiting takes */
      private final Monitor.Guard notEmpty;
    
      /** Guard for waiting puts */
      private final Monitor.Guard notFull;
    
      // Internal helper methods
    
      /** Circularly increment i. */
      final int inc(int i) {
        return (++i == items.length) ? 0 : i;
      }
    
      /**
       * Inserts element at current put position, advances, and signals. Call only when occupying
       * monitor.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      /** Guard for waiting takes */
      private final Monitor.Guard notEmpty;
    
      /** Guard for waiting puts */
      private final Monitor.Guard notFull;
    
      // Internal helper methods
    
      /** Circularly increment i. */
      final int inc(int i) {
        return (++i == items.length) ? 0 : i;
      }
    
      /**
       * Inserts element at current put position, advances, and signals. Call only when occupying
       * monitor.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/BloomFilter.java

       *     been added to the filter. Note that {@code put(t)} always returns the <i>opposite</i>
       *     result to what {@code mightContain(t)} would have returned at the time it is called.
       * @since 12.0 (present in 11.0 with {@code void} return type})
       */
      @CanIgnoreReturnValue
      public boolean put(@ParametricNullness T object) {
        return strategy.put(object, funnel, numHashFunctions, bits);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top