Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 901 for we (0.12 sec)

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

            expectedCrc,
            actualCrcHasher);
      }
    
      // From RFC 3720, Section 12.1, the polynomial generator is 0x11EDC6F41.
      // We calculate the constant below by:
      //   1. Omitting the most significant bit (because it's always 1). => 0x1EDC6F41
      //   2. Flipping the bits of the constant so we can process a byte at a time. => 0x82F63B78
      private static final int CRC32C_GENERATOR = 0x1EDC6F41; // 0x11EDC6F41
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

       * process in any way, for example being sent over RPC, or saved to disk. For a general-purpose,
       * non-cryptographic hash function that will never change behavior, we suggest {@link
       * #murmur3_128}.
       *
       * <p>Repeated calls to this method on the same loaded {@code Hashing} class, using the same value
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java

    import java.util.Collections;
    import java.util.Set;
    
    /**
     * Optional features of classes derived from {@link Multiset}.
     *
     * @author Louis Wasserman
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum MultisetFeature implements Feature<Multiset> {
      /**
       * Indicates that elements from {@code Multiset.entrySet()} update to reflect changes in the
       * backing multiset.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

           * parameters. If it were statically checked, the checker would still be OK with it, since
           * we're copying into a `contents` array whose type allows it to contain nulls. Still, it's
           * worth noting that we promise not to put nulls into the array in the first `size` elements.
           * We uphold that promise here because our callers promise that `elements` will not contain
           * nulls in its first `n` elements.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/collect/TreeMultiset.java

        @CheckForNull private AvlNode<E> right;
        /*
         * pred and succ are nullable after construction, but we always call successor() to initialize
         * them immediately thereafter.
         *
         * They may be subsequently nulled out by TreeMultiset.clear(). I think that the only place that
         * we can reference a node whose fields have been cleared is inside the iterator (and presumably
         * only under concurrent modification).
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

      }
    
      @Override
      public boolean containsAll(Collection<?> targets) {
        // TODO(jlevy): For optimal performance, use a binary search when
        // 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();
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableSet.java

    public abstract class ForwardingImmutableSet<E> extends ImmutableSet<E> {
      private final transient Set<E> delegate;
    
      ForwardingImmutableSet(Set<E> delegate) {
        // TODO(cpovirk): are we over-wrapping?
        this.delegate = Collections.unmodifiableSet(delegate);
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return Iterators.unmodifiableIterator(delegate.iterator());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multisets.java

            Entry<?> entry = (Entry<?>) object;
            Object element = entry.getElement();
            int entryCount = entry.getCount();
            if (entryCount != 0) {
              // Safe as long as we never add a new entry, which we won't.
              // (Presumably it can still throw CCE/NPE but only if the underlying Multiset does.)
              @SuppressWarnings({"unchecked", "nullness"})
    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)
  9. guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Random;
    
    /**
     * Benchmarks for comparing the various {@link HashFunction functions} that we provide.
     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: The length of the byte array to hash.
     *   <li>hashFunctionEnum: The {@link HashFunction} to use for hashing.
     * </ul>
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java

    /**
     * {@link FluentFuture} that forwards all calls to a delegate.
     *
     * <h3>Extension</h3>
     *
     * If you want a class like {@code FluentFuture} but with extra methods, we recommend declaring your
     * own subclass of {@link ListenableFuture}, complete with a method like {@link #from} to adapt an
     * existing {@code ListenableFuture}, implemented atop a {@link ForwardingListenableFuture} that
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 05 22:27:35 GMT 2021
    - 2.5K bytes
    - Viewed (0)
Back to top