Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 209 for normal (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

              }
            });
      }
    
      @Override
      protected void tearDown() {
        tearDownStack.runTearDown();
      }
    
      /**
       * This first test doesn't test anything in Uninterruptibles, just demonstrates some normal
       * behavior of futures so that you can contrast the next test with it.
       */
      public void testRegularFutureInterrupted() throws ExecutionException {
    
        /*
         * Here's the order of events that we want.
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloserTest.java

      public void testNoExceptionsThrown() throws IOException {
        Closer closer = new Closer(suppressor);
    
        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
        TestCloseable c3 = closer.register(TestCloseable.normal());
    
        assertFalse(c1.isClosed());
        assertFalse(c2.isClosed());
        assertFalse(c3.isClosed());
    
        closer.close();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeMultiset.java

          }
          value = newValue;
        }
    
        void clear() {
          value = null;
        }
      }
    
      private static final class AvlNode<E extends @Nullable Object> {
        /*
         * For "normal" nodes, the type of this field is `E`, not `@Nullable E` (though note that E is a
         * type that can include null, as in a TreeMultiset<@Nullable String>).
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] b = new byte[0];
        ByteArrayDataInput in = ByteStreams.newDataInput(b);
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_normal() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertEquals(0x12345678, in.readInt());
        assertEquals(0x76543210, in.readInt());
        assertThrows(IllegalStateException.class, () -> in.readInt());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedLong.java

      }
    
      /**
       * Returns an {@code UnsignedLong} corresponding to a given bit representation. The argument is
       * interpreted as an unsigned 64-bit value. Specifically, the sign bit of {@code bits} is
       * interpreted as a normal bit, and all other bits are treated as usual.
       *
       * <p>If the argument is nonnegative, the returned result will be equal to {@code bits},
       * otherwise, the result will be equal to {@code 2^64 + bits}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

    abstract class SmoothRateLimiter extends RateLimiter {
      /*
       * How is the RateLimiter designed, and why?
       *
       * The primary feature of a RateLimiter is its "stable rate", the maximum rate that it should
       * allow in normal conditions. This is enforced by "throttling" incoming requests as needed. For
       * example, we could compute the appropriate throttle time for an incoming request, and make the
       * calling thread wait for that time.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Monitor.java

       *
       * <p>In addition, any thread that has been signalled when its guard was satisfied acquires the
       * responsibility of signalling the next thread when it again relinquishes the lock. Unlike a
       * normal Condition, there is no guarantee that an interrupted thread has not been signalled,
       * since the concurrency control must manage multiple Conditions. So this method must generally be
       * called when waits are interrupted.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/DoubleMathTest.java

      private static final List<Double> BAD_TOLERANCE_CANDIDATES =
          Doubles.asList(
              -Double.MIN_VALUE,
              -Double.MIN_NORMAL,
              -1,
              -20,
              Double.NaN,
              Double.NEGATIVE_INFINITY,
              -0.001);
    
      public void testFuzzyEqualsFinite() {
        for (double a : FINITE_DOUBLE_CANDIDATES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashSet.java

       *         <li>UNSET, meaning "null pointer"
       *         <li>one plus an index into the entries and elements array
       *       </ul>
       *   <li>another java.util.Set delegate implementation. In most modern JDKs, normal java.util hash
       *       collections intelligently fall back to a binary search tree if hash table collisions are
       *       detected. Rather than going to all the trouble of reimplementing this ourselves, we
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multiset.java

     *
     * <p>A multiset uses {@link Object#equals} to determine whether two instances should be considered
     * "the same," <i>unless specified otherwise</i> by the implementation.
     *
     * <p><b>Warning:</b> as with normal {@link Set}s, it is almost always a bad idea to modify an
     * element (in a way that affects its {@link Object#equals} behavior) while it is contained in a
     * multiset. Undefined behavior and bugs will result.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
Back to top