Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for bond (0.14 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

      private static final ImmutableList<Range<Integer>> RANGES;
      private static final int MIN_BOUND = -1;
      private static final int MAX_BOUND = 1;
    
      static {
        ImmutableList.Builder<Range<Integer>> builder = ImmutableList.builder();
    
        builder.add(Range.<Integer>all());
    
        // Add one-ended ranges
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType type : BoundType.values()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
            if (componentType instanceof Class) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeResolver.java

              Set<Type> combined = new LinkedHashSet<>(asList(upperBounds));
              // Since this is an artificially generated type variable, we don't bother checking
              // subtyping between declared type bound and actual type bound. So it's possible that we
              // may generate something like <capture#1-of ? extends Foo&SubFoo>.
              // Checking subtype between declared and actual type bounds
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        AtomicDoubleArray aa = new AtomicDoubleArray(0);
        assertEquals(0, aa.length());
        assertThrows(IndexOutOfBoundsException.class, () -> aa.get(0));
      }
    
      /** get and set for out of bound indices throw IndexOutOfBoundsException */
      public void testIndexing() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int index : new int[] {-1, SIZE}) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        AtomicDoubleArray aa = new AtomicDoubleArray(0);
        assertEquals(0, aa.length());
        assertThrows(IndexOutOfBoundsException.class, () -> aa.get(0));
      }
    
      /** get and set for out of bound indices throw IndexOutOfBoundsException */
      public void testIndexing() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int index : new int[] {-1, SIZE}) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LongMath.java

          // Both a and b are odd. Assume a > b; then gcd(a - b, b) = gcd(a, b).
          // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
    
          // We bend over backwards to avoid branching, adapting a technique from
          // http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax
    
          long delta = a - b; // can't overflow, since a and b are nonnegative
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

                  + " called");
        }
      }
    
      public void testNullBounds() {
        // NullBounds has methods whose parameters are type variables that have
        // "extends @Nullable Object" as a bound. This test ensures that NullPointerTester considers
        // those parameters to be @Nullable, so it won't call the methods.
        NullBounds<?, ?, ?> nullBounds = new NullBounds<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Monitor.java

      }
    
      /**
       * Returns an estimate of the number of threads waiting for the given guard to become satisfied.
       * Note that because timeouts and interrupts may occur at any time, the estimate serves only as an
       * upper bound on the actual number of waiters. This method is designed for use in monitoring of
       * the system state, not for synchronization control.
       */
      public int getWaitQueueLength(Guard guard) {
        if (guard.monitor != this) {
    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)
  9. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.EXCLUSIVE, Bound.NO_BOUND));
          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.EXCLUSIVE, Bound.EXCLUSIVE));
          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.EXCLUSIVE, Bound.INCLUSIVE));
          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.INCLUSIVE));
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

        if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) {
          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.NO_BOUND, Bound.EXCLUSIVE));
          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.NO_BOUND));
          derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.EXCLUSIVE));
        }
    
        return derivedSuites;
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top