Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for above (0.14 sec)

  1. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       * to calling it exactly once.
       *
       * @since 10.0 (present in 1.0 as {@code run})
       */
      public void execute() {
        // Lock while we update our state so the add method above will finish adding any listeners
        // before we start to run them.
        RunnableExecutorPair list;
        synchronized (this) {
          if (executed) {
            return;
          }
          executed = true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      private void setLink(int i, long value) {
        requireLinks()[i] = value;
      }
    
      /*
       * We don't define getPredecessor+getSuccessor and setPredecessor+setSuccessor here because
       * they're defined above -- including logic to add and subtract 1 to map between the values stored
       * in the predecessor/successor arrays and the indexes in the elements array that they identify.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
       * a hotspot optimizer bug, which should be fixed, but that's a separate, big project).
       *
       * The coding pattern above is heavily used in java.util, e.g. in ArrayList. There is a
       * RangeCheckMicroBenchmark in the JDK that was used to test this.
       *
    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)
  4. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

              "co\uFF61uk", // Alternate dot character
              "\u7f51\u7edc.Cn", // "网络.Cn"
              "j\u00f8rpeland.no", // "jorpeland.no" (first o slashed)
              "xn--jrpeland-54a.no"); // IDNA (punycode) encoding of above
    
      private static final ImmutableSet<String> PS_NOT_RS =
          ImmutableSet.of("blogspot.com", "blogspot.co.uk", "uk.com");
    
      private static final ImmutableSet<String> PS =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                            "~~ b", (Collection<String>) ImmutableSortedSet.of("~above"));
                      }
    
                      @Override
                      public Entry<String, Collection<String>> aboveSamplesGreater() {
                        return Helpers.mapEntry(
                            "~~ c", (Collection<String>) ImmutableSortedSet.of("~above"));
                      }
                    })
                .named("TreeMultimap.asMap")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Platform.java

         * 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
         * `get()`, but that is vanishingly unlikely.
         */
        return ref == null ? Optional.absent() : Optional.fromNullable(enumClass.cast(ref.get()));
      }
    
    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)
  7. guava/src/com/google/common/base/Throwables.java

       *   }
       * }
       * </pre>
       *
       * @param throwable the Throwable to propagate
       * @return nothing will ever be returned; this return type is only for your convenience, as
       *     illustrated in the example above
       * @deprecated To preserve behavior, use {@code throw e} or {@code throw new RuntimeException(e)}
       *     directly, or use a combination of {@link #throwIfUnchecked} and {@code throw new
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

              remaining = entry.getCount();
            }
            remaining--;
            /*
             * requireNonNull is safe because `remaining` starts at 0, forcing us to initialize
             * `element` above. After that, we never clear it.
             */
            return requireNonNull(element);
          }
        };
      }
    
      @LazyInit @CheckForNull private transient ImmutableList<E> asList;
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Throwables.java

       *   }
       * }
       * </pre>
       *
       * @param throwable the Throwable to propagate
       * @return nothing will ever be returned; this return type is only for your convenience, as
       *     illustrated in the example above
       * @deprecated To preserve behavior, use {@code throw e} or {@code throw new RuntimeException(e)}
       *     directly, or use a combination of {@link #throwIfUnchecked} and {@code throw new
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        mmHeap.remove(12);
        assertEquals(14, mmHeap.size());
        assertTrue("Heap is not intact after remove()", mmHeap.isIntact());
      }
    
      /** This tests a more obscure special case, but otherwise similar to above. */
      public void testInvalidatingRemove2() {
        MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create();
        List<Integer> values =
            Lists.newArrayList(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top