Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 69 for CharSequence (0.22 sec)

  1. guava-tests/test/com/google/common/io/CharStreamsTest.java

        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
          @Override
          public Appendable append(CharSequence csq, int start, int end) throws IOException {
            a.append(csq, start, end);
            return this;
          }
    
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
          @Override
          public Appendable append(CharSequence csq, int start, int end) throws IOException {
            a.append(csq, start, end);
            return this;
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        <T> void withoutBound(List<T> list) {}
    
        @SuppressWarnings("unused")
        <T extends Object> void withObjectBound(List<T> list) {}
    
        @SuppressWarnings("unused")
        <T extends Number & CharSequence> void withUpperBound(List<T> list) {}
    
        static TypeVariable<?> getTypeVariable(String methodName) throws Exception {
          ParameterizedType parameterType =
              (ParameterizedType)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

        }
        if (cp >= safeMin && cp <= safeMax) {
          return null;
        }
        return escapeUnsafe(cp);
      }
    
      /* Overridden for performance. */
      @Override
      protected final int nextEscapeIndex(CharSequence csq, int index, int end) {
        while (index < end) {
          char c = csq.charAt(index);
          if ((c < replacementsLength && replacements[c] != null)
              || c > safeMaxChar
              || c < safeMinChar) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Utf8.java

       * time and space.
       *
       * @throws IllegalArgumentException if {@code sequence} contains ill-formed UTF-16 (unpaired
       *     surrogates)
       */
      public static int encodedLength(CharSequence sequence) {
        // Warning to maintainers: this implementation is highly optimized.
        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                  @Override
                  public Sub apply(Sub sub) {
                    return new ForwardingSub(sub);
                  }
                });
      }
    
      interface Base {
        CharSequence getId();
      }
    
      interface Sub extends Base {
        @Override
        String getId();
      }
    
      private static class ForwardingSub implements Sub {
        private final Sub delegate;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypesTest.java

        <T> void withoutBound(List<T> list) {}
    
        @SuppressWarnings("unused")
        <T extends Object> void withObjectBound(List<T> list) {}
    
        @SuppressWarnings("unused")
        <T extends Number & CharSequence> void withUpperBound(List<T> list) {}
    
        static TypeVariable<?> getTypeVariable(String methodName) throws Exception {
          ParameterizedType parameterType =
              (ParameterizedType)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/CharStreams.java

          checkPositionIndexes(off, off + len, str.length());
        }
    
        @Override
        public Writer append(@CheckForNull CharSequence csq) {
          return this;
        }
    
        @Override
        public Writer append(@CheckForNull CharSequence csq, int start, int end) {
          checkPositionIndexes(start, end, csq == null ? "null".length() : csq.length());
          return this;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/MoreObjects.java

        }
    
        private static boolean isEmpty(Object value) {
          // Put types estimated to be the most frequent first.
          if (value instanceof CharSequence) {
            return ((CharSequence) value).length() == 0;
          } else if (value instanceof Collection) {
            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private static final Predicate<CharSequence> STARTSWITH_A =
          new Predicate<CharSequence>() {
            @Override
            public boolean apply(CharSequence input) {
              return (input.length() > 0) && (input.charAt(0) == 'a');
            }
          };
    
      public void testIndexOf_genericPredicate() {
        List<CharSequence> sequences = Lists.newArrayList();
        sequences.add("bob");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top