Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for getint (0.15 sec)

  1. android/guava/src/com/google/common/hash/Crc32cHashFunction.java

            crc0 = computeForWord(crc0);
            crc1 = computeForWord(crc1);
            crc2 = computeForWord(crc2);
            crc3 = computeForWord(crc3);
            crc0 ^= bb.getInt();
            crc1 ^= bb.getInt();
            crc2 ^= bb.getInt();
            crc3 ^= bb.getInt();
          }
        }
    
        @Override
        protected void processRemaining(ByteBuffer bb) {
          if (finished) {
            return;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          buffer.order(ByteOrder.LITTLE_ENDIAN);
          while (buffer.remaining() >= 4) {
            putInt(buffer.getInt());
          }
          while (buffer.hasRemaining()) {
            putByte(buffer.get());
          }
          buffer.order(bo);
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Hasher putInt(int i) {
          update(4, i);
          return this;
        }
    
        @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java

      public void testToArray_noArg() {
        Object[] actual = getList().toArray();
        assertArrayEquals("toArray() order should match list", createOrderedArray(), actual);
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testToArray_tooSmall() {
        Object[] actual = getList().toArray(new Object[0]);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

        assertTrue("add(present) should return true", getList().add(e0()));
        expectAdded(e0());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      /*
       * absent = ZERO isn't required, since unmodList.add() must
       * throw regardless, but it keeps the method name accurate.
       */
      public void testAdd_unsupportedPresent() {
        try {
          getList().add(e0());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

            }
          } while (!Impl.GUAVA.noMulOverflow(longsToMul[i][0], longsToMul[i][1]));
    
          int k = binomials[i][1] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials.length);
          binomials[i][0] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials[k] - k) + k;
        }
      }
    
      @Benchmark
      long factorialDouble(int reps) {
        long tmp = 0;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
       * unhashable objects can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Ints.java

        };
      }
    
      /**
       * Returns the {@code int} value whose big-endian representation is stored in the first 4 bytes of
       * {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getInt()}. For example, the input
       * byte array {@code {0x12, 0x13, 0x14, 0x15, 0x33}} would yield the {@code int} value {@code
       * 0x12131415}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

           */
        }
      }
    
      public void testSubList_empty() {
        assertEquals("subList(0, 0) should be empty", emptyList(), getList().subList(0, 0));
      }
    
      public void testSubList_entireList() {
        assertEquals(
            "subList(0, size) should be equal to the original list",
            getList(),
            getList().subList(0, getNumElements()));
      }
    
      @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

       */
      public void testAddAtIndex_unsupportedPresent() {
        try {
          getList().add(0, e0());
          fail("add(n, present) should throw");
        } catch (UnsupportedOperationException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAtIndex_supportedNotPresent() {
        getList().add(0, e3());
        expectAdded(0, e3());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

        int index = aValidIndex();
        E initialValue = getList().get(index);
        assertEquals(
            "set(i, x) should return the old element at position i.",
            initialValue,
            getList().set(index, newValue));
        assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
        assertEquals("set() should not change the size of a list.", getNumElements(), getList().size());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top