Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for Hong (0.15 sec)

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

        setBackingMap(Maps.<E, Count>newHashMap());
        Serialization.populateMultiset(this, stream, distinctElements);
      }
    
      @GwtIncompatible // Not needed in emulated source.
      @J2ktIncompatible
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        int numberOfThreads = 64;
        runConcurrentTest(
            numberOfThreads,
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                long unused = ticker.read();
                return null;
              }
            });
    
        assertEquals(incrementByNanos * numberOfThreads, ticker.read());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

          public long getLongLittleEndian(byte[] array, int offset) {
            return theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET);
          }
    
          @Override
          public void putLongLittleEndian(byte[] array, int offset, long value) {
            theUnsafe.putLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET, value);
          }
        },
        UNSAFE_BIG_ENDIAN {
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Internal.java

       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      @SuppressWarnings({
        // We use this method only for cases in which we need to decompose to primitives.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Internal.java

       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      @SuppressWarnings({
        // We use this method only for cases in which we need to decompose to primitives.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 11 14:30:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/FakeTicker.java

    public class FakeTicker extends Ticker {
    
      private final AtomicLong nanos = new AtomicLong();
      private volatile long autoIncrementStepNanos;
    
      /** Advances the ticker value by {@code time} in {@code timeUnit}. */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      @CanIgnoreReturnValue
      public FakeTicker advance(long time, TimeUnit timeUnit) {
        return advance(timeUnit.toNanos(time));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EnumMultiset.java

        checkNonnegative(occurrences, "occurrences");
        if (occurrences == 0) {
          return count(element);
        }
        int index = element.ordinal();
        int oldCount = counts[index];
        long newCount = (long) oldCount + occurrences;
        checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount);
        counts[index] = (int) newCount;
        if (oldCount == 0) {
          distinctElements++;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Platform.java

         * type.
         *
         * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant
         * won't be cleared as long as the enum constant is referenced somewhere, and the enum constant
         * is referenced somewhere for as long as the enum class is loaded. *Maybe in theory* the enum
         * class could be unloaded after the above call to `getEnumConstants` but before we call
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java

      }
    
      public void testEmptyArrayToEmpty() {
        doTestNewArrayEquals(new Object[0], 0);
      }
    
      public void testEmptyArrayToNonEmpty() {
        checkArrayEquals(new Long[5], ObjectArrays.newArray(new Long[0], 5));
      }
    
      public void testNonEmptyToShorter() {
        checkArrayEquals(new String[9], ObjectArrays.newArray(new String[10], 9));
      }
    
      public void testNonEmptyToSameLength() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMapKeySet.java

        final ImmutableMap<K, ?> map;
    
        KeySetSerializedForm(ImmutableMap<K, ?> map) {
          this.map = map;
        }
    
        Object readResolve() {
          return map.keySet();
        }
    
        private static final long serialVersionUID = 0;
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.7K bytes
    - Viewed (0)
Back to top