Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for triage (0.24 sec)

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

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.util.concurrent.Service.State;
    
    /**
     * Superinterface of {@link ServiceManager} to introduce a bridge method for {@code
     * servicesByState()}, to ensure binary compatibility with older Guava versions that specified
     * {@code servicesByState()} to return {@code ImmutableMultimap}.
     */
    @J2ktIncompatible
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SortedMultisetBridge.java

    import com.google.common.annotations.GwtIncompatible;
    import java.util.SortedSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Superinterface of {@link SortedMultiset} to introduce a bridge method for {@code elementSet()},
     * to ensure binary compatibility with older Guava versions that specified {@code elementSet()} to
     * return {@code SortedSet}.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/Utf8Test.java

        utf8Lengths.put(MAX_CODE_POINT, 4);
    
        Integer[] codePoints = utf8Lengths.keySet().toArray(new Integer[] {});
        StringBuilder sb = new StringBuilder();
        Random rnd = new Random();
        for (int trial = 0; trial < 100; trial++) {
          sb.setLength(0);
          int utf8Length = 0;
          for (int i = 0; i < 6; i++) {
            Integer randomCodePoint = codePoints[rnd.nextInt(codePoints.length)];
            sb.appendCodePoint(randomCodePoint);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        thread.start();
    
        boolean done = doneSignal.await(1, TimeUnit.SECONDS);
        if (!done) {
          StringBuilder builder = new StringBuilder();
          for (StackTraceElement trace : thread.getStackTrace()) {
            builder.append("\tat ").append(trace).append('\n');
          }
          fail(builder.toString());
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/EnumHashBiMap.java

        /*
         * TODO: cpovirk - Pre-size the HashMap based on the number of enum values? (But *not* based on
         * the number of entries in the map, as that makes it easy for hostile inputs to trigger lots of
         * allocation—not that any program should be deserializing hostile inputs to begin with!)
         */
        setDelegates(new EnumMap<K, V>(keyTypeOrObjectUnderJ2cl), new HashMap<V, K>());
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

              @Override
              void afterRanInterruptiblyFailure(Throwable error) {}
            };
        Thread runner = new Thread(task, "runner");
        runner.start();
        isInterruptibleRegistered.await();
        // trigger the interrupt on another thread since it will block
        Thread interrupter =
            new Thread("Interrupter") {
              @Override
              public void run() {
                task.interruptTask();
              }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

     * good job of distributing the elements to the buckets to a distribution not far from uniform), and
     * amortized since some operations can trigger a hash table resize.
     *
     * <p>This implementation consumes significantly less memory than {@code java.util.LinkedHashSet} or
     * even {@code java.util.HashSet}, and places considerably less load on the garbage collector. Like
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/GeneralRange.java

        this.lowerEndpoint = lowerEndpoint;
        this.lowerBoundType = checkNotNull(lowerBoundType);
        this.upperEndpoint = upperEndpoint;
        this.upperBoundType = checkNotNull(upperBoundType);
    
        // Trigger any exception that the comparator would throw for the endpoints.
        /*
         * uncheckedCastNullableTToT is safe as long as the callers are careful to pass a "real" T
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * (In other words, this method must allocate a new array). The caller is thus free to modify the
       * returned array.
       *
       * <p>This method acts as bridge between array-based and collection-based APIs.
       *
       * @return an array containing all of the elements in this queue
       */
      @CanIgnoreReturnValue
      @Override
      public Object[] toArray() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        for (Method m : TreeMultiset.class.getMethods()) {
          if (m.getName().equals("elementSet") && m.getReturnType().equals(SortedSet.class)) {
            return;
          }
        }
        fail("No bridge method found");
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top