Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 263 for Kast (0.12 sec)

  1. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      @CheckForNull
      private MoveDesc<E> fillHole(int index, E toTrickle) {
        Heap heap = heapForIndex(index);
        // We consider elementData(index) a "hole", and we want to fill it
        // with the last element of the heap, toTrickle.
        // Since the last element of the heap is from the bottom level, we
        // optimistically fill index position with elements from lower levels,
        // moving the hole down. In most cases this reduces the number of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          builder.add(BEFORE_FIRST);
          builder.add(BEFORE_FIRST_2);
          builder.add(elements);
          builder.add(AFTER_LAST);
          builder.add(AFTER_LAST_2);
          return builder
              .build()
              .subSet(BEFORE_FIRST_2, AFTER_LAST_2)
              .asList()
              .subList(1, elements.length + 1);
        }
      }
    
      public abstract static class TestUnhashableSetGenerator
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * value}.
       *
       * @param value any {@code long} value
       * @return {@code (byte) 255} if {@code value >= 255}, {@code (byte) 0} if {@code value <= 0}, and
       *     {@code value} cast to {@code byte} otherwise
       */
      public static byte saturatedCast(long value) {
        if (value > toInt(MAX_VALUE)) {
          return MAX_VALUE; // -1
        }
        if (value < 0) {
          return (byte) 0;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          return label;
        }
      }
    
      /** Convenient subsets of the {@link Timeout} enumeration for specifying scenario outcomes. */
      private enum TimeoutsToUse {
        ANY(Timeout.values()),
        PAST(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO),
        FUTURE(Timeout.SMALL, Timeout.MAX),
        SMALL(Timeout.SMALL),
        FINITE(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO, Timeout.SMALL),
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Throwables.java

       * @throws ClassCastException if the cause cannot be cast to the expected type. The {@code
       *     ClassCastException}'s cause is {@code throwable}.
       * @since 22.0
       */
      @GwtIncompatible // Class.cast(Object)
      @CheckForNull
      public static <X extends Throwable> X getCauseAs(
          Throwable throwable, Class<X> expectedCauseType) {
        try {
          return expectedCauseType.cast(throwable.getCause());
    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)
  6. android/guava/src/com/google/common/base/Throwables.java

       * @throws ClassCastException if the cause cannot be cast to the expected type. The {@code
       *     ClassCastException}'s cause is {@code throwable}.
       * @since 22.0
       */
      @GwtIncompatible // Class.cast(Object)
      @CheckForNull
      public static <X extends Throwable> X getCauseAs(
          Throwable throwable, Class<X> expectedCauseType) {
        try {
          return expectedCauseType.cast(throwable.getCause());
    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)
  7. android/guava/src/com/google/common/collect/AbstractBiMap.java

      }
    
      private void updateInverseMap(
          @ParametricNullness K key,
          boolean containedKey,
          @CheckForNull V oldValue,
          @ParametricNullness V newValue) {
        if (containedKey) {
          // The cast is safe because of the containedKey check.
          removeFromInverseMap(uncheckedCastNullableTToT(oldValue));
        }
        inverse.delegate.put(newValue, key);
      }
    
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

        if (allMustSucceed) {
          // We need fail fast, so we have to keep track of which future failed so we can propagate
          // the exception immediately
    
          // Register a listener on each Future in the list to update the state of this future.
          // Note that if all the futures on the list are done prior to completing this loop, the last
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

          if (!compareAndSet(currentThread, DONE)) {
            waitForInterrupt(currentThread);
          }
          if (run) {
            if (error == null) {
              // The cast is safe because of the `run` and `error` checks.
              afterRanInterruptiblySuccess(uncheckedCastNullableTToT(result));
            } else {
              afterRanInterruptiblyFailure(error);
            }
          }
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/Striped64.java

          int r = rng.nextInt(); // Avoid zero to allow xorShift rehash
          h = hc[0] = (r == 0) ? 1 : r;
        } else h = hc[0];
        boolean collide = false; // True if last slot nonempty
        for (; ; ) {
          Cell[] as;
          Cell a;
          int n;
          long v;
          if ((as = cells) != null && (n = as.length) > 0) {
            if ((a = as[(n - 1) & h]) == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top