Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 87 for CharSequence (6.2 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testGetGenericSuperclass_wildcard_boundIsInterface() {
        assertNull(TypeToken.of(Types.subtypeOf(CharSequence.class)).getGenericSuperclass());
        assertEquals(
            new TypeToken<CharSequence[]>() {},
            TypeToken.of(Types.subtypeOf(CharSequence[].class)).getGenericSuperclass());
      }
    
      public <T> void testGetGenericInterfaces_typeVariable_unbounded() {
    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)
  2. android/guava/src/com/google/common/io/CharSequenceReader.java

     * but works with any {@link CharSequence}.
     *
     * @author Colin Decker
     */
    // TODO(cgdecker): make this public? as a type, or a method in CharStreams?
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class CharSequenceReader extends Reader {
    
      @CheckForNull private CharSequence seq;
      private int pos;
      private int mark;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Splitter.java

       * Iterator}, which may be lazily evaluated. If you want an eagerly computed {@link List}, use
       * {@link #splitToList(CharSequence)}.
       *
       * @param sequence the sequence of characters to split
       * @return an iteration over the segments split from the parameter
       */
      public Iterable<String> split(final CharSequence sequence) {
        checkNotNull(sequence);
    
        return new Iterable<String>() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

      }
    
      @GwtIncompatible // ObjectArrays.concat(Object[], Object[], Class)
      public void testConcatWithMoreGeneralType() {
        CharSequence[] result = ObjectArrays.concat(new String[0], new String[0], CharSequence.class);
        assertEquals(CharSequence[].class, result.getClass());
      }
    
      public void testToArrayImpl1() {
        doTestToArrayImpl1(Lists.<Integer>newArrayList());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/BaseEncoding.java

      abstract int maxDecodedSize(int chars);
    
      abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
    
      CharSequence trimTrailingPadding(CharSequence chars) {
        return checkNotNull(chars);
      }
    
      // Modified encoding generators
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Splitter.java

       * {@link #splitToList(CharSequence)}. Java 8+ users may prefer {@link #splitToStream} instead.
       *
       * @param sequence the sequence of characters to split
       * @return an iteration over the segments split from the parameter
       */
      public Iterable<String> split(final CharSequence sequence) {
        checkNotNull(sequence);
    
        return new Iterable<String>() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/AppendableWriter.java

        target.append(c);
        return this;
      }
    
      @Override
      public Writer append(@CheckForNull CharSequence charSeq) throws IOException {
        checkNotClosed();
        target.append(charSeq);
        return this;
      }
    
      @Override
      public Writer append(@CheckForNull CharSequence charSeq, int start, int end) throws IOException {
        checkNotClosed();
        target.append(charSeq, start, end);
        return this;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  8. 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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        for (boolean asByteSource : new boolean[] {false, true}) {
          suite.addTest(
              CharSourceTester.tests(
                  "CharSource.wrap[CharSequence]",
                  SourceSinkFactories.stringCharSourceFactory(),
                  asByteSource));
          suite.addTest(
              CharSourceTester.tests(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Strings.java

       * {@code b} have no common prefix, returns the empty string.
       *
       * @since 11.0
       */
      public static String commonPrefix(CharSequence a, CharSequence b) {
        checkNotNull(a);
        checkNotNull(b);
    
        int maxPrefixLength = Math.min(a.length(), b.length());
        int p = 0;
        while (p < maxPrefixLength && a.charAt(p) == b.charAt(p)) {
          p++;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
Back to top