- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for CharSequence (0.05 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) -
src/test/java/jcifs/internal/util/StringUtilTest.java
@DisplayName("Should handle StringBuilder as CharSequence") void testJoinWithStringBuilder() { StringBuilder sb1 = new StringBuilder("first"); StringBuilder sb2 = new StringBuilder("second"); String result = StringUtil.join(",", sb1, sb2); assertEquals("first,second", result); } @Test @DisplayName("Should handle StringBuffer as CharSequence") void testJoinWithStringBuffer() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K 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) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sat Nov 02 09:29:52 UTC 2024 - 7.6K 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) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java
*/ public StringSource(CharSequence content) { this(content, null); } /** * Creates a new source backed by the specified string. * * @param content The String representation, may be empty or {@code null}. * @param location The location to report for this use, may be {@code null}. */ public StringSource(CharSequence content, String location) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jan 15 18:51:29 UTC 2025 - 3K 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) -
src/main/java/jcifs/internal/util/StringUtil.java
* @param elements the elements to join * @return elements separated by delimiter */ public static String join(final CharSequence delimiter, final CharSequence... elements) { final StringBuilder sb = new StringBuilder(); for (final CharSequence element : elements) { if (sb.length() > 0) { if (delimiter != null) { sb.append(delimiter);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.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) -
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)