Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 101 for CharSequence (0.18 seconds)

  1. android/guava/src/com/google/common/io/CharStreams.java

          checkPositionIndexes(off, off + len, str.length());
        }
    
        @Override
        public Writer append(@Nullable CharSequence csq) {
          return this;
        }
    
        @Override
        public Writer append(@Nullable CharSequence csq, int start, int end) {
          checkPositionIndexes(start, end, csq == null ? "null".length() : csq.length());
          return this;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

            flushAttributes();
            builder.append(value);
            return this;
        }
    
        public Ansi a(CharSequence value, int start, int end) {
            flushAttributes();
            builder.append(value, start, end);
            return this;
        }
    
        public Ansi a(CharSequence value) {
            flushAttributes();
            builder.append(value);
            return this;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  3. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 05 17:38:41 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/base/StringsTest.java

      })
      public void testRepeat_null() {
        assertThrows(NullPointerException.class, () -> Strings.repeat(null, 5));
      }
    
      @SuppressWarnings("UnnecessaryStringBuilder") // We want to test a non-String CharSequence
      public void testCommonPrefix() {
        assertThat(Strings.commonPrefix("", "")).isEqualTo("");
        assertThat(Strings.commonPrefix("abc", "")).isEqualTo("");
        assertThat(Strings.commonPrefix("", "abc")).isEqualTo("");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Lists.java

            Object writeReplace() {
          return super.writeReplace();
        }
      }
    
      private static final class CharSequenceAsList extends AbstractList<Character> {
        private final CharSequence sequence;
    
        CharSequenceAsList(CharSequence sequence) {
          this.sequence = sequence;
        }
    
        @Override
        public Character get(int index) {
          checkElementIndex(index, size()); // for GWT
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.5K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/TypesTest.java

           * built-in nullness feature?
           */
          "ExtendsObject",
        })
        <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)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/base/JoinerTest.java

      private static final Appendable NASTY_APPENDABLE =
          new Appendable() {
            @Override
            public Appendable append(@Nullable CharSequence csq) throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
              throw new IOException();
            }
    
            @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  8. 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) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 15:45:16 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  9. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

          return delegate.toString();
        }
      }
    
      public void testCovariantReturn() {
        new ForwardingWrapperTester().testForwarding(Sub.class, ForwardingSub::new);
      }
    
      interface Base {
        CharSequence getId();
      }
    
      interface Sub extends Base {
        @Override
        String getId();
      }
    
      private static final class ForwardingSub implements Sub {
        private final Sub delegate;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .omitEmptyValues()
                // CharSequences
                .add("field1", "")
                .add("field2", new StringBuilder())
                // nio CharBuffer (implements CharSequence) is tested separately below
                // Collections and Maps
                .add("field11", Arrays.asList("Hello"))
                .add("field12", new ArrayList<>())
                .add("field13", new HashMap<>())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 22K bytes
    - Click Count (0)
Back to Top