Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Bounds (0.28 sec)

  1. android/guava/src/com/google/common/reflect/TypeToken.java

      }
    
      private static Bounds every(Type[] bounds) {
        // Every bound must match. On any false, result is false.
        return new Bounds(bounds, false);
      }
    
      private static Bounds any(Type[] bounds) {
        // Any bound matches. On any true, result is true.
        return new Bounds(bounds, true);
      }
    
      private static class Bounds {
        private final Type[] bounds;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/CharMatcher.java

          if (matches(sequence.charAt(i))) {
            return i;
          }
        }
        return -1;
      }
    
      /**
       * Returns the number of matching {@code char}s found in a character sequence.
       *
       * <p>Counts 2 per supplementary character, such as for {@link #whitespace}().{@link #negate}().
       */
      public int countIn(CharSequence sequence) {
        int count = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        @SuppressWarnings("unused") // used by reflection
        List<N> counts;
      }
    
      public void testWildcardCaptured_typeVariableDeclaresTypeBound_wildcardHasNoExplicitUpperBound()
          throws Exception {
        TypeToken<Counter<?>> type = new TypeToken<Counter<?>>() {};
        TypeToken<?> fieldType =
            type.resolveType(Counter.class.getDeclaredField("counts").getGenericType());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       * that entries are indexable using ints.
       */
      static final int MAXIMUM_CAPACITY = Ints.MAX_POWER_OF_TWO;
    
      /** The maximum number of segments to allow; used to bound constructor arguments. */
      static final int MAX_SEGMENTS = 1 << 16; // slightly conservative
    
      /** Number of (unsynchronized) retries in the containsValue method. */
      static final int CONTAINS_VALUE_RETRIES = 3;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

            .isTrue();
        if (!failures.isEmpty()) {
          StringWriter message = new StringWriter();
          PrintWriter writer = new PrintWriter(message);
          writer.println("Expected no failures, but found:");
          for (AssertionError failure : failures) {
            failure.printStackTrace(writer);
          }
          failures.clear();
          assertWithMessage(message.toString()).fail();
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CharMatcher.java

          if (matches(sequence.charAt(i))) {
            return i;
          }
        }
        return -1;
      }
    
      /**
       * Returns the number of matching {@code char}s found in a character sequence.
       *
       * <p>Counts 2 per supplementary character, such as for {@link #whitespace}().{@link #negate}().
       */
      public int countIn(CharSequence sequence) {
        int count = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

            .isTrue();
        if (!failures.isEmpty()) {
          StringWriter message = new StringWriter();
          PrintWriter writer = new PrintWriter(message);
          writer.println("Expected no failures, but found:");
          for (AssertionError failure : failures) {
            failure.printStackTrace(writer);
          }
          failures.clear();
          assertWithMessage(message.toString()).fail();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Futures.java

      public static <V extends @Nullable Object> ListenableFuture<List<@Nullable V>> successfulAsList(
          ListenableFuture<? extends V>... futures) {
        /*
         * Another way to express this signature would be to bound <V> by @NonNull and accept
         * LF<? extends @Nullable V>. That might be better: There's currently no difference between the
         * outputs users get when calling this with <Foo> and calling it with <@Nullable Foo>. The only
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Iterators.java

        }
        return true;
      }
    
      /**
       * Returns the first element in {@code iterator} that satisfies the given predicate; use this
       * method only when such an element is known to exist. If no such element is found, the iterator
       * will be left exhausted: its {@code hasNext()} method will return {@code false}. If it is
       * possible that <i>no</i> element will match, use {@link #tryFind} or {@link #find(Iterator,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        @SuppressWarnings("unused") // used by reflection
        List<N> counts;
      }
    
      public void testWildcardCaptured_typeVariableDeclaresTypeBound_wildcardHasNoExplicitUpperBound()
          throws Exception {
        TypeToken<Counter<?>> type = new TypeToken<Counter<?>>() {};
        TypeToken<?> fieldType =
            type.resolveType(Counter.class.getDeclaredField("counts").getGenericType());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top