- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for CharSequence (6.22 sec)
-
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 Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Sep 17 20:47:03 GMT 2021 - 12.6K bytes - Viewed (0) -
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
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public <T> Iterable<? super String> wildcardsMatchByLowerBound( List<? super CharSequence> list) { return isSubtype(list); } @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true) public <T> Iterable<? super CharSequence> wildCardsDoNotMatchByLowerBound( List<? super String> list) { return notSubtype(list); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 20.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
* the {@code charSequence} is mutated while it is being read, so don't do that. * * @since 15.0 (since 14.0 as {@code CharStreams.asCharSource(String)}) */ public static CharSource wrap(CharSequence charSequence) { return charSequence instanceof String ? new StringCharSource((String) charSequence) : new CharSequenceCharSource(charSequence); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 22.4K 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$"));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 32.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
* tolerance is implemented differently: Its implementation avoids calling this toString(Object) * method in the first place.) */ requireNonNull(part); return (part instanceof CharSequence) ? (CharSequence) part : part.toString(); } private static Iterable<@Nullable Object> iterable( @CheckForNull Object first, @CheckForNull Object second, @Nullable Object[] rest) { checkNotNull(rest);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 18.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Ascii.java
* surprising behavior of {@code toUpperCase()} and {@code toLowerCase()}. * * @since 16.0 */ public static boolean equalsIgnoreCase(CharSequence s1, CharSequence s2) { // Calling length() is the null pointer check (so do it before we can exit early). int length = s1.length(); if (s1 == s2) { return true; } if (length != s2.length()) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Jul 19 15:43:07 GMT 2021 - 21.6K bytes - Viewed (0) -
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) -
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) -
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)