- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for CharSequence (0.07 sec)
-
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
* the same sequence when read using each type of read method it provides. */ private static void assertReadsCorrectly(CharSequence charSequence) throws IOException { String expected = charSequence.toString(); // read char by char CharSequenceReader reader = new CharSequenceReader(charSequence);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.6K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractHasher.java
@Override @CanIgnoreReturnValue public Hasher putUnencodedChars(CharSequence charSequence) { for (int i = 0, len = charSequence.length(); i < len; i++) { putChar(charSequence.charAt(i)); } return this; } @Override @CanIgnoreReturnValue public Hasher putString(CharSequence charSequence, Charset charset) { return putBytes(charSequence.toString().getBytes(charset)); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/AppendableWriter.java
checkNotClosed(); target.append(c); return this; } @Override public Writer append(@Nullable CharSequence charSeq) throws IOException { checkNotClosed(); target.append(charSeq); return this; } @Override public Writer append(@Nullable CharSequence charSeq, int start, int end) throws IOException { checkNotClosed(); target.append(charSeq, start, end); return this;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:37:28 UTC 2025 - 3.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
// This benchmark has no concept of "noWorkToDo". String upperString = testString.toUpperCase(); CharSequence testSeq = new StringBuilder(testString); CharSequence upperSeq = new StringBuilder(upperString); CharSequence[] lhs = new CharSequence[] {testString, testSeq, testString, testSeq}; CharSequence[] rhs = new CharSequence[] {upperString, upperString, upperSeq, upperSeq}; boolean dummy = false;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/AbstractStreamingHasher.java
return this; } /* * Note: hashString(CharSequence, Charset) is intentionally not overridden. * * While intuitively, using CharsetEncoder to encode the CharSequence directly to the buffer (or * even to an intermediate buffer) should be considerably more efficient than potentially * copying the CharSequence to a String and then calling getBytes(Charset) on that String, in
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 7.1K bytes - Viewed (0) -
guava/src/com/google/common/reflect/AbstractInvocationHandler.java
* protected Object handleInvocation(Object proxy, Method method, Object[] args) { * throw new UnsupportedOperationException(); * } * } * * CharSequence unsupported = Reflection.newProxy(CharSequence.class, new Unsupported()); * </pre> * * @author Ben Yu * @since 12.0 */ public abstract class AbstractInvocationHandler implements InvocationHandler {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hasher.java
* putUnencodedChars}. * * @since 15.0 (since 11.0 as putString(CharSequence)). */ @CanIgnoreReturnValue @Override Hasher putUnencodedChars(CharSequence charSequence); /** * Equivalent to {@code putBytes(charSequence.toString().getBytes(charset))}. * * <p><b>Warning:</b> This method, which reencodes the input before hashing it, is useful only for
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
// This benchmark has no concept of "noWorkToDo". String upperString = testString.toUpperCase(); CharSequence testSeq = new StringBuilder(testString); CharSequence upperSeq = new StringBuilder(upperString); CharSequence[] lhs = new CharSequence[] {testString, testSeq, testString, testSeq}; CharSequence[] rhs = new CharSequence[] {upperString, upperString, upperSeq, upperSeq}; boolean dummy = false;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSink.java
* * @throws IOException if an I/O error while writing to this sink */ public void write(CharSequence charSequence) throws IOException { checkNotNull(charSequence); try (Writer out = openStream()) { out.append(charSequence); } } /** * Writes the given lines of text to this sink with each line (including the last) terminated with
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:07:06 UTC 2025 - 6.7K bytes - Viewed (0) -
android/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.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 7K bytes - Viewed (0)