Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Rashed (0.17 sec)

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

        hasher.putShort((short) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testInt() {
        TestHasher hasher = new TestHasher();
        hasher.putInt(0x04030201);
        hasher.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testLong() {
        TestHasher hasher = new TestHasher();
        hasher.putLong(0x0807060504030201L);
        hasher.assertBytes(new byte[] {1, 2, 3, 4, 5, 6, 7, 8});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

          }
          // We need to ensure that at least 4 bytes have been put into the hasher or else
          // Hasher#hash will throw an ISE.
          int intToPut = random.nextInt();
          for (Hasher hasher : sinksAndControl) {
            hasher.putInt(intToPut);
          }
          for (Sink sink : sinks) {
            HashCode unused = sink.hash();
          }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /**
     * Basher test for {@link AtomicLongMap}.
     *
     * @author mike nonemacher
     */
    @J2ktIncompatible // threads
    @GwtIncompatible // threads
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RegularImmutableSet.java

      // The first `size` elements are non-null.
      @VisibleForTesting final transient @Nullable Object[] elements;
      private final transient int hashCode;
      // the same values as `elements` in hashed positions (plus nulls)
      @VisibleForTesting final transient @Nullable Object[] table;
      // 'and' with an int to get a valid table index.
      private final transient int mask;
      private final transient int size;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

          for (String algorithmToTest : ALGORITHMS.keySet()) {
            assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest);
          }
        }
      }
    
      public void testPutAfterHash() {
        Hasher sha1 = Hashing.sha1().newHasher();
    
        assertEquals(
            "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12",
            sha1.putString("The quick brown fox jumps over the lazy dog", Charsets.UTF_8)
                .hash()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/EnumMultiset.java

      }
    
      public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) {
        Iterator<E> iterator = elements.iterator();
        checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable");
        EnumMap<E, Count> map = new EnumMap<>(getDeclaringClassOrObjectForJ2cl(iterator.next()));
        EnumMultiset<E> multiset = new EnumMultiset<>(map);
        Iterables.addAll(multiset, elements);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 26 21:20:30 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Objects.java

       *       {@link Object#equals(Object)}.
       *   <li>{@code false} in all other situations.
       * </ul>
       *
       * <p>This assumes that any non-null objects passed to this function conform to the {@code
       * equals()} contract.
       *
       * <p><b>Java 7+ users:</b> This method should be treated as deprecated; use {@link
       * java.util.Objects#equals} instead.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

           * another thread did it for us.
           */
          seenExceptionsLocal = requireNonNull(seenExceptions);
        }
        return seenExceptionsLocal;
      }
    
      /** Populates {@code seen} with the exception that was passed to {@code setException}. */
      abstract void addInitialException(Set<Throwable> seen);
    
      final int decrementRemainingAndGet() {
        return ATOMIC_HELPER.decrementAndGetRemainingCount(this);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        this.testsEquals = true;
        return this;
      }
    
      /**
       * Tests that the forwarding wrapper returned by {@code wrapperFunction} properly forwards method
       * calls with parameters passed as is, return value returned as is, and exceptions propagated as
       * is.
       */
      public <T> void testForwarding(
          Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        this.testsEquals = true;
        return this;
      }
    
      /**
       * Tests that the forwarding wrapper returned by {@code wrapperFunction} properly forwards method
       * calls with parameters passed as is, return value returned as is, and exceptions propagated as
       * is.
       */
      public <T> void testForwarding(
          Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
Back to top