Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Hong (1.03 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       *
       * @since 20.0 (varargs overload since 2.0)
       */
      public static void checkArgument(
          boolean expression, String errorMessageTemplate, long p1, long p2) {
        if (!expression) {
          throw new IllegalArgumentException(lenientFormat(errorMessageTemplate, p1, p2));
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Comparator<? super K> comparator,
          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
      static final class SynchronizedRandomAccessList<E extends @Nullable Object>
          extends SynchronizedList<E> implements RandomAccess {
        SynchronizedRandomAccessList(List<E> list, @CheckForNull Object mutex) {
          super(list, mutex);
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      private static final class UnsafeAtomicHelper extends AtomicHelper {
        static final sun.misc.Unsafe UNSAFE;
        static final long LISTENERS_OFFSET;
        static final long WAITERS_OFFSET;
        static final long VALUE_OFFSET;
        static final long WAITER_THREAD_OFFSET;
        static final long WAITER_NEXT_OFFSET;
    
        static {
          sun.misc.Unsafe unsafe = null;
          try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        map.put(SomeEnum.SOME_INSTANCE, 0);
        assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map);
      }
    
      public void testEnumMapNullClass() {
        try {
          Maps.<SomeEnum, Long>newEnumMap((Class<MapsTest.SomeEnum>) null);
          fail("no exception thrown");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testEnumMapWithInitialEnumMap() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

        map.put(SomeEnum.SOME_INSTANCE, 0);
        assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map);
      }
    
      public void testEnumMapNullClass() {
        try {
          Maps.<SomeEnum, Long>newEnumMap((Class<MapsTest.SomeEnum>) null);
          fail("no exception thrown");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testEnumMapWithInitialEnumMap() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        // CONTAINS_VALUE_RETRIES increases, though without locking it is theoretically possible.
        final Segment<K, V, E, S>[] segments = this.segments;
        long last = -1L;
        for (int i = 0; i < CONTAINS_VALUE_RETRIES; i++) {
          long sum = 0L;
          for (Segment<K, V, E, S> segment : segments) {
            // ensure visibility of most recent completed write
            int unused = segment.count; // read-volatile
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

      }
    
      /**
       * Creates an {@code EnumSet} consisting of all enum values that are not in the specified
       * collection. This is equivalent to {@link EnumSet#complementOf}, but can act on any input
       * collection, as long as the elements are of enum type.
       *
       * @param collection the collection whose complement should be stored in the {@code EnumSet}
       * @param type the type of the elements in the set
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Futures.java

      //    the initial write (just stronger guarantees if it does).
      //
      // See: http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013800.html
      // For a (long) discussion about this specific issue and the general futility of life.
      //
      // For the time being we are OK with the problem discussed above since it requires a caller to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

          setMap(map);
        }
    
        @GwtIncompatible // java serialization not supported
        @J2ktIncompatible
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Creates a new {@code ListMultimap} that uses the provided map and factory. It can generate a
       * multimap based on arbitrary {@link Map} and {@link List} classes.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
Back to top