- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for CharSequence (0.13 sec)
-
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 = min(a.length(), b.length()); int p = 0; while (p < maxPrefixLength && a.charAt(p) == b.charAt(p)) { p++;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 12.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/CharMatcher.java
checkNotNull(sequence); return ""; } @Override public String replaceFrom(CharSequence sequence, char replacement) { char[] array = new char[sequence.length()]; Arrays.fill(array, replacement); return new String(array); } @Override public String replaceFrom(CharSequence sequence, CharSequence replacement) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 53.9K 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) -
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) -
src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java
import jakarta.validation.ConstraintValidatorContext; /** * Validator implementation for the CustomSize constraint. */ public class CustomSizeValidator implements ConstraintValidator<CustomSize, CharSequence> { /** * Default constructor. */ public CustomSizeValidator() { // Empty constructor } private int min = 0; private int max = Integer.MAX_VALUE;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java
* @param builder A map builder to which all entries will be added. * @return The number of characters consumed from {@code encoded}. */ private static int doParseTrieToBuilder( Deque<CharSequence> stack, CharSequence encoded, int start, ImmutableMap.Builder<String, PublicSuffixType> builder) { int encodedLen = encoded.length(); int idx = start; char c = '\0';
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4K bytes - Viewed (0) -
android/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() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/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(new ArrayList<Integer>());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
public void testContainsPattern_apply() { Predicate<CharSequence> isFoobar = Predicates.containsPattern("^Fo.*o.*bar$"); assertTrue(isFoobar.apply("Foxyzoabcbar")); assertFalse(isFoobar.apply("Foobarx")); } @GwtIncompatible // Predicates.containsPattern public void testContains_apply() { Predicate<CharSequence> isFoobar = Predicates.contains(Pattern.compile("^Fo.*o.*bar$"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 32.2K bytes - Viewed (0) -
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() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0)