Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 394 for Hong (0.15 sec)

  1. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

          Long[] suffix = {(long) 86, (long) 99};
          Long[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Long[] concat(Long[] left, Long[] right) {
        Long[] result = new Long[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ConverterTest.java

            .addEqualityGroup(STR_TO_LONG, STR_TO_LONG.reverse().reverse())
            .addEqualityGroup(STR_TO_LONG.reverse(), STR_TO_LONG.reverse())
            .testEquals();
      }
    
      public void testReverseReverse() {
        Converter<String, Long> converter = STR_TO_LONG;
        assertEquals(converter, converter.reverse().reverse());
      }
    
      public void testApply() {
        assertEquals(LONG_VAL, STR_TO_LONG.apply(STR_VAL));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

                .addValue(3.14d)
                .add(LONG_NAME, false)
                .add(LONG_NAME, LONG_NAME);
          }
        },
        CONDITIONAL {
          void addEntries(MoreObjects.ToStringHelper helper) {
            helper
                .add(SHORT_NAME, "x")
                .add(LONG_NAME, "y")
                .add(SHORT_NAME, null)
                .add(LONG_NAME, null)
                .addValue("z")
                .addValue("")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 14 22:05:11 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheStatsTest.java

            new CacheStats(
                Long.MAX_VALUE,
                Long.MAX_VALUE,
                Long.MAX_VALUE,
                Long.MAX_VALUE,
                Long.MAX_VALUE,
                Long.MAX_VALUE);
        CacheStats smallCacheStats = new CacheStats(1, 1, 1, 1, 1, 1);
    
        CacheStats sum = smallCacheStats.plus(maxCacheStats);
        assertEquals(Long.MAX_VALUE, sum.requestCount());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun Jun 30 14:58:49 GMT 2019
    - 4.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

      public ListenableScheduledFuture<?> scheduleAtFixedRate(
          Runnable command, long initialDelay, long period, TimeUnit unit) {
        throw new UnsupportedOperationException("scheduleAtFixedRate is not supported.");
      }
    
      @Override
      public ListenableScheduledFuture<?> scheduleWithFixedDelay(
          Runnable command, long initialDelay, long delay, TimeUnit unit) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 6.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

          return NeverScheduledFuture.create();
        }
    
        private static class NeverScheduledFuture<V> extends AbstractFuture<V>
            implements ListenableScheduledFuture<V> {
    
          static <V> NeverScheduledFuture<V> create() {
            return new NeverScheduledFuture<>();
          }
    
          @Override
          public long getDelay(TimeUnit unit) {
            return Long.MAX_VALUE;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

          buf[((x1 << 16) + (x2 << 8) + x3) % bufLen] ^= i % 256;
        }
        assertEquals(0x7a1d67c50ec7e167L, h);
      }
    
      private static long remix(long h) {
        h ^= h >>> 41;
        h *= 949921979;
        return h;
      }
    
      private static byte getChar(long h) {
        return (byte) ('a' + ((h & 0xfffff) % 26));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 6.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

          suite.addTest(suiteForBytes(sliced, bytes, name + ".slice[long, long]", desc, false));
    
          // test a slice() of the ByteSource starting at a random offset with a length of
          // Long.MAX_VALUE
          ByteSourceFactory slicedLongMaxValue =
              SourceSinkFactories.asSlicedByteSourceFactory(factory, off, Long.MAX_VALUE);
          suite.addTest(
              suiteForBytes(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

          doubles[i] = randomDouble(Long.SIZE);
          factorials[i] = RANDOM_SOURCE.nextInt(100);
        }
      }
    
      @Benchmark
      long log2(int reps) {
        long tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += Double.doubleToRawLongBits(DoubleMath.log2(positiveDoubles[j]));
        }
        return tmp;
      }
    
      @Benchmark
      long factorial(int reps) {
        long tmp = 0;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      private void setSuccessor(int entry, int succ) {
        long succMask = (~0L) >>> 32;
        setLink(entry, (link(entry) & ~succMask) | ((succ + 1) & succMask));
      }
    
      private void setPredecessor(int entry, int pred) {
        long predMask = ~0L << 32;
        setLink(entry, (link(entry) & ~predMask) | ((long) (pred + 1) << 32));
      }
    
      private void setSucceeds(int pred, int succ) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top