Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 172 for hashInt (0.26 sec)

  1. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

    package com.google.common.graph;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import java.util.HashSet;
    import java.util.Set;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public final class InvalidatableSetTest {
      Set<Integer> wrappedSet;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

    package com.google.common.graph;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import java.util.HashSet;
    import java.util.Set;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public final class InvalidatableSetTest {
      Set<Integer> wrappedSet;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    import com.google.caliper.api.VmOptions;
    import java.util.HashSet;
    import java.util.Set;
    import java.util.concurrent.Executor;
    import java.util.concurrent.atomic.AtomicInteger;
    
    /**
     * A benchmark comparing the {@link MoreExecutors#newDirectExecutorService()} to {@link
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    import com.google.caliper.api.VmOptions;
    import java.util.HashSet;
    import java.util.Set;
    import java.util.concurrent.Executor;
    import java.util.concurrent.atomic.AtomicInteger;
    
    /**
     * A benchmark comparing the {@link MoreExecutors#newDirectExecutorService()} to {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

     * the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Hashing.ChecksumType.ADLER_32;
    import static com.google.common.hash.Hashing.ChecksumType.CRC_32;
    
    import java.util.zip.Checksum;
    import junit.framework.TestCase;
    
    /**
     * Tests for ChecksumHashFunction.
     *
     * @author Colin Decker
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 14:33:12 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteSourceTester.java

                  }
                });
    
        assertExpectedBytes(readBytes);
      }
    
      public void testHash() throws IOException {
        HashCode expectedHash = Hashing.md5().hashBytes(expected);
        assertEquals(expectedHash, source.hash(Hashing.md5()));
      }
    
      public void testSlice_illegalArguments() {
        assertThrows(
            "expected IllegalArgumentException for call to slice with offset -1: " + source,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/HashingTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Hashing.smear;
    
    import com.google.common.annotations.GwtCompatible;
    import junit.framework.TestCase;
    
    /** Tests for {@code Hashing}. */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class HashingTest extends TestCase {
      public void testSmear() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          LocalCache<Object, Object> map = makeLocalCache(builder);
    
          Object keyOne = new Object();
          Object valueOne = new Object();
          int hashOne = map.hash(keyOne);
          ReferenceEntry<Object, Object> entryOne = map.newEntry(keyOne, hashOne, null);
          ValueReference<Object, Object> valueRefOne = map.newValueReference(entryOne, valueOne, 1);
          assertSame(valueOne, valueRefOne.get());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          LocalCache<Object, Object> map = makeLocalCache(builder);
    
          Object keyOne = new Object();
          Object valueOne = new Object();
          int hashOne = map.hash(keyOne);
          ReferenceEntry<Object, Object> entryOne = map.newEntry(keyOne, hashOne, null);
          ValueReference<Object, Object> valueRefOne = map.newValueReference(entryOne, valueOne, 1);
          assertSame(valueOne, valueRefOne.get());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testHashCode_equalsAndSerializable() throws Exception {
        sanityTester().testEqualsAndSerializable();
      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII);
        HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString()));
        assertEquals(hash1, hash2);
      }
    
      public void testObjectHashCode() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
Back to top