Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,430 for Kint (0.12 sec)

  1. guava/src/com/google/common/collect/ForwardingMultiset.java

       * A sensible definition of {@link #setCount(Object, int, int)} in terms of {@link #count(Object)}
       * and {@link #setCount(Object, int)}. If you override either of these methods, you may wish to
       * override {@link #setCount(Object, int, int)} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardSetCount(@ParametricNullness E element, int oldCount, int newCount) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/Quantiles.java

          int[] quotients = new int[indexes.length];
          int[] remainders = new int[indexes.length];
          // The indexes to select. In the worst case, we'll need one each side of each quantile.
          int[] requiredSelections = new int[indexes.length * 2];
          int requiredSelectionsCount = 0;
          for (int i = 0; i < indexes.length; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

        }
        return result;
      }
    
      @Benchmark
      int hashFunction(int reps) {
        HashFunction hashFunction = hashFunctionEnum.getHashFunction();
        int result = 37;
        for (int i = 0; i < reps; i++) {
          result ^= hashFunction.hashBytes(testBytes).asBytes()[0];
        }
        return result;
      }
    
      @Benchmark
      int hashFunctionWithOffset(int reps) {
        HashFunction hashFunction = hashFunctionEnum.getHashFunction();
    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)
  4. guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java

        for (int i = 0; i < reps; i++) {
          lock.lock();
          lock.unlock();
        }
      }
    
      @Benchmark
      void orderedPlainLocks(int reps) {
        lockAndUnlockNested(plainLocks, reps);
      }
    
      @Benchmark
      void orderedCycleDetectingLocks(int reps) {
        lockAndUnlockNested(detectingLocks, reps);
      }
    
      private static void lockAndUnlockNested(Lock[] locks, int reps) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        }
      }
    
      private interface Adder {
        int add(int a, int b);
      }
    
      private static class ForwardingArithmetic implements Arithmetic {
        private final Arithmetic arithmetic;
    
        public ForwardingArithmetic(Arithmetic arithmetic) {
          this.arithmetic = arithmetic;
        }
    
        @Override
        public int add(int a, int b) {
          return arithmetic.add(a, b);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      }
    
      @Benchmark
      public int countIn(int reps) {
        int result = 0;
        CharMatcher matcher = this.matcher;
        String teststring = this.teststring;
        for (int i = 0; i < reps; i++) {
          result += matcher.countIn(teststring);
        }
        return result;
      }
    
      @Benchmark
      public int collapseFrom(int reps) {
        int result = 0;
        CharMatcher matcher = this.matcher;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/SmallCharMatcher.java

        // Compute the filter.
        long filter = 0;
        int size = chars.cardinality();
        boolean containsZero = chars.get(0);
        // Compute the hash table.
        char[] table = new char[chooseTableSize(size)];
        int mask = table.length - 1;
        for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) {
          // Compute the filter at the same time.
          filter |= 1L << c;
          int index = smear(c) & mask;
          while (true) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      }
    
      /** get and set for out of bound indices throw IndexOutOfBoundsException */
      public void testIndexing() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int index : new int[] {-1, SIZE}) {
          assertThrows(IndexOutOfBoundsException.class, () -> aa.get(index));
          assertThrows(IndexOutOfBoundsException.class, () -> aa.set(index, 1.0));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Utf8.java

          throw new IllegalArgumentException(
              "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32)));
        }
        return utf8Length;
      }
    
      private static int encodedLengthGeneral(CharSequence sequence, int start) {
        int utf16Length = sequence.length();
        int utf8Length = 0;
        for (int i = start; i < utf16Length; i++) {
          char c = sequence.charAt(i);
          if (c < 0x800) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

     */
    public class HashMultisetAddPresentBenchmark {
      private static final int ARRAY_MASK = 0x0ffff;
      private static final int ARRAY_SIZE = 0x10000;
      List<Multiset<Integer>> multisets = new ArrayList<>(0x10000);
      int[] queries = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        Random random = new Random();
        multisets.clear();
        for (int i = 0; i < ARRAY_SIZE; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
Back to top