@@ -48,7 +48,7 @@ public class TextUtils {
48
48
private static final String ELLIPSIS_NORMAL = "\u2026 " ; // HORIZONTAL ELLIPSIS (…)
49
49
private static final String ELLIPSIS_TWO_DOTS = "\u2025 " ; // TWO DOT LEADER (‥)
50
50
51
- /** {@hide } */
51
+ /** {} */
52
52
@ NonNull
53
53
public static String getEllipsisString (@ NonNull TruncateAt method ) {
54
54
return (method == TruncateAt .END_SMALL ) ? ELLIPSIS_TWO_DOTS : ELLIPSIS_NORMAL ;
@@ -373,8 +373,8 @@ public interface StringSplitter extends Iterable<String> {
373
373
* A simple string splitter.
374
374
*
375
375
* <p>If the final character in the string to split is the delimiter then no empty string will
376
- * be returned for the empty string after that delimeter. That is, splitting <tt> "a,b,"</tt> on
377
- * comma will return <tt> "a", "b"</tt> , not <tt> "a", "b", ""</tt> .
376
+ * be returned for the empty string after that delimeter. That is, splitting "a,b," on
377
+ * comma will return "a", "b", not "a", "b", "".
378
378
*/
379
379
public static class SimpleStringSplitter implements StringSplitter , Iterator <String > {
380
380
private String mString ;
@@ -443,29 +443,29 @@ public static boolean isEmpty(@Nullable CharSequence str) {
443
443
return str == null || str .length () == 0 ;
444
444
}
445
445
446
- /** {@hide } */
446
+ /** {} */
447
447
public static String nullIfEmpty (@ Nullable String str ) {
448
448
return isEmpty (str ) ? null : str ;
449
449
}
450
450
451
- /** {@hide } */
451
+ /** {} */
452
452
public static String emptyIfNull (@ Nullable String str ) {
453
453
return str == null ? "" : str ;
454
454
}
455
455
456
- /** {@hide } */
456
+ /** {} */
457
457
public static String firstNotEmpty (@ Nullable String a , @ NonNull String b ) {
458
458
return !isEmpty (a ) ? a : Preconditions .checkStringNotEmpty (b );
459
459
}
460
460
461
- /** {@hide } */
461
+ /** {} */
462
462
public static int length (@ Nullable String s ) {
463
463
return isEmpty (s ) ? 0 : s .length ();
464
464
}
465
465
466
466
/**
467
467
* @return interned string if it's null.
468
- * @hide
468
+ *
469
469
*/
470
470
public static String safeIntern (String s ) {
471
471
return (s != null ) ? s .intern () : null ;
@@ -577,61 +577,61 @@ public void getChars(int start, int end, char[] dest, int destoff) {
577
577
private int mEnd ;
578
578
}
579
579
580
- /** @hide */
580
+ /** */
581
581
public static final int ALIGNMENT_SPAN = 1 ;
582
- /** @hide */
582
+ /** */
583
583
public static final int FIRST_SPAN = ALIGNMENT_SPAN ;
584
- /** @hide */
584
+ /** */
585
585
public static final int FOREGROUND_COLOR_SPAN = 2 ;
586
- /** @hide */
586
+ /** */
587
587
public static final int RELATIVE_SIZE_SPAN = 3 ;
588
- /** @hide */
588
+ /** */
589
589
public static final int SCALE_X_SPAN = 4 ;
590
- /** @hide */
590
+ /** */
591
591
public static final int STRIKETHROUGH_SPAN = 5 ;
592
- /** @hide */
592
+ /** */
593
593
public static final int UNDERLINE_SPAN = 6 ;
594
- /** @hide */
594
+ /** */
595
595
public static final int STYLE_SPAN = 7 ;
596
- /** @hide */
596
+ /** */
597
597
public static final int BULLET_SPAN = 8 ;
598
- /** @hide */
598
+ /** */
599
599
public static final int QUOTE_SPAN = 9 ;
600
- /** @hide */
600
+ /** */
601
601
public static final int LEADING_MARGIN_SPAN = 10 ;
602
- /** @hide */
602
+ /** */
603
603
public static final int URL_SPAN = 11 ;
604
- /** @hide */
604
+ /** */
605
605
public static final int BACKGROUND_COLOR_SPAN = 12 ;
606
- /** @hide */
606
+ /** */
607
607
public static final int TYPEFACE_SPAN = 13 ;
608
- /** @hide */
608
+ /** */
609
609
public static final int SUPERSCRIPT_SPAN = 14 ;
610
- /** @hide */
610
+ /** */
611
611
public static final int SUBSCRIPT_SPAN = 15 ;
612
- /** @hide */
612
+ /** */
613
613
public static final int ABSOLUTE_SIZE_SPAN = 16 ;
614
- /** @hide */
614
+ /** */
615
615
public static final int TEXT_APPEARANCE_SPAN = 17 ;
616
- /** @hide */
616
+ /** */
617
617
public static final int ANNOTATION = 18 ;
618
- /** @hide */
618
+ /** */
619
619
public static final int SUGGESTION_SPAN = 19 ;
620
- /** @hide */
620
+ /** */
621
621
public static final int SPELL_CHECK_SPAN = 20 ;
622
- /** @hide */
622
+ /** */
623
623
public static final int SUGGESTION_RANGE_SPAN = 21 ;
624
- /** @hide */
624
+ /** */
625
625
public static final int EASY_EDIT_SPAN = 22 ;
626
- /** @hide */
626
+ /** */
627
627
public static final int LOCALE_SPAN = 23 ;
628
- /** @hide */
628
+ /** */
629
629
public static final int TTS_SPAN = 24 ;
630
- /** @hide */
630
+ /** */
631
631
public static final int ACCESSIBILITY_CLICKABLE_SPAN = 25 ;
632
- /** @hide */
632
+ /** */
633
633
public static final int ACCESSIBILITY_URL_SPAN = 26 ;
634
- /** @hide */
634
+ /** */
635
635
public static final int LAST_SPAN = ACCESSIBILITY_URL_SPAN ;
636
636
637
637
/**
@@ -1069,7 +1069,7 @@ public static void copySpansFrom(Spanned source, int start, int end,
1069
1069
*
1070
1070
* If copySpans is set, source must be an instance of Spanned.
1071
1071
*
1072
- * {@hide }
1072
+ * {}
1073
1073
*/
1074
1074
@ NonNull
1075
1075
public static CharSequence toUpperCase (@ Nullable Locale locale , @ NonNull CharSequence source ,
@@ -1137,7 +1137,7 @@ public enum TruncateAt {
1137
1137
END ,
1138
1138
MARQUEE ,
1139
1139
/**
1140
- * @hide
1140
+ *
1141
1141
*/
1142
1142
END_SMALL
1143
1143
}
@@ -1195,7 +1195,7 @@ public static CharSequence ellipsize(CharSequence text,
1195
1195
* If <code>callback</code> is non-null, it will be called to
1196
1196
* report the start and end of the ellipsized range.
1197
1197
*
1198
- * @hide
1198
+ *
1199
1199
*/
1200
1200
public static CharSequence ellipsize (CharSequence text ,
1201
1201
TextPaint paint ,
@@ -1383,7 +1383,7 @@ public static CharSequence ellipsize(CharSequence text,
1383
1383
* @deprecated Do not use. This is not internationalized, and has known issues
1384
1384
* with right-to-left text, languages that have more than one plural form, languages
1385
1385
* that use a different character as a comma-like separator, etc.
1386
- * Use {@link # listEllipsize} instead.
1386
+ * Use listEllipsize instead.
1387
1387
*/
1388
1388
@ Deprecated
1389
1389
public static CharSequence commaEllipsize (CharSequence text ,
@@ -1395,7 +1395,7 @@ public static CharSequence commaEllipsize(CharSequence text,
1395
1395
}
1396
1396
1397
1397
/**
1398
- * @hide
1398
+ *
1399
1399
*/
1400
1400
@ Deprecated
1401
1401
public static CharSequence commaEllipsize (CharSequence text , TextPaint p ,
@@ -1667,7 +1667,7 @@ public static boolean isDigitsOnly(CharSequence str) {
1667
1667
}
1668
1668
1669
1669
/**
1670
- * @hide
1670
+ *
1671
1671
*/
1672
1672
public static boolean isPrintableAscii (final char c ) {
1673
1673
final int asciiFirst = 0x20 ;
@@ -1676,7 +1676,7 @@ public static boolean isPrintableAscii(final char c) {
1676
1676
}
1677
1677
1678
1678
/**
1679
- * @hide
1679
+ *
1680
1680
*/
1681
1681
public static boolean isPrintableAsciiOnly (final CharSequence str ) {
1682
1682
final int len = str .length ();
@@ -1822,7 +1822,7 @@ public static int getCapsMode(CharSequence cs, int off, int reqModes) {
1822
1822
* Does a comma-delimited list 'delimitedString' contain a certain item?
1823
1823
* (without allocating memory)
1824
1824
*
1825
- * @hide
1825
+ *
1826
1826
*/
1827
1827
public static boolean delimitedStringContains (
1828
1828
String delimitedString , char delimiter , String item ) {
@@ -1862,7 +1862,7 @@ public static boolean delimitedStringContains(
1862
1862
* @param spanned The Spanned from which spans were extracted
1863
1863
* @return A subset of spans where empty spans ({@link Spanned#getSpanStart(Object)} ==
1864
1864
* {@link Spanned#getSpanEnd(Object)} have been removed. The initial order is preserved
1865
- * @hide
1865
+ *
1866
1866
*/
1867
1867
@ SuppressWarnings ("unchecked" )
1868
1868
public static <T > T [] removeEmptySpans (T [] spans , Spanned spanned , Class <T > klass ) {
@@ -1901,7 +1901,7 @@ public static <T> T[] removeEmptySpans(T[] spans, Spanned spanned, Class<T> klas
1901
1901
* Pack 2 int values into a long, useful as a return value for a range
1902
1902
* @see #unpackRangeStartFromLong(long)
1903
1903
* @see #unpackRangeEndFromLong(long)
1904
- * @hide
1904
+ *
1905
1905
*/
1906
1906
public static long packRangeInLong (int start , int end ) {
1907
1907
return (((long ) start ) << 32 ) | end ;
@@ -1911,7 +1911,7 @@ public static long packRangeInLong(int start, int end) {
1911
1911
* Get the start value from a range packed in a long by {@link #packRangeInLong(int, int)}
1912
1912
* @see #unpackRangeEndFromLong(long)
1913
1913
* @see #packRangeInLong(int, int)
1914
- * @hide
1914
+ *
1915
1915
*/
1916
1916
public static int unpackRangeStartFromLong (long range ) {
1917
1917
return (int ) (range >>> 32 );
@@ -1921,7 +1921,7 @@ public static int unpackRangeStartFromLong(long range) {
1921
1921
* Get the end value from a range packed in a long by {@link #packRangeInLong(int, int)}
1922
1922
* @see #unpackRangeStartFromLong(long)
1923
1923
* @see #packRangeInLong(int, int)
1924
- * @hide
1924
+ *
1925
1925
*/
1926
1926
public static int unpackRangeEndFromLong (long range ) {
1927
1927
return (int ) (range & 0x00000000FFFFFFFFL );
@@ -1949,15 +1949,15 @@ public static int unpackRangeEndFromLong(long range) {
1949
1949
// /**
1950
1950
// * Return localized string representing the given number of selected items.
1951
1951
// *
1952
- // * @hide
1952
+ // *
1953
1953
// */
1954
1954
// public static CharSequence formatSelectedCount(int count) {
1955
1955
// return Resources.getSystem().getQuantityString(R.plurals.selected_count, count, count);
1956
1956
// }
1957
1957
1958
1958
/**
1959
1959
* Returns whether or not the specified spanned text has a style span.
1960
- * @hide
1960
+ *
1961
1961
*/
1962
1962
public static boolean hasStyleSpan (@ NonNull Spanned spanned ) {
1963
1963
Preconditions .checkArgument (spanned != null );
@@ -1976,7 +1976,7 @@ public static boolean hasStyleSpan(@NonNull Spanned spanned) {
1976
1976
* {@link NoCopySpan}'s are removed from the copy. Otherwise the given {@code charSequence} is
1977
1977
* returned as it is.
1978
1978
*
1979
- * @hide
1979
+ *
1980
1980
*/
1981
1981
@ Nullable
1982
1982
public static CharSequence trimNoCopySpans (@ Nullable CharSequence charSequence ) {
@@ -1990,7 +1990,7 @@ public static CharSequence trimNoCopySpans(@Nullable CharSequence charSequence)
1990
1990
/**
1991
1991
* Prepends {@code start} and appends {@code end} to a given {@link StringBuilder}
1992
1992
*
1993
- * @hide
1993
+ *
1994
1994
*/
1995
1995
public static void wrap (StringBuilder builder , String start , String end ) {
1996
1996
builder .insert (0 , start );
@@ -2008,7 +2008,7 @@ public static void wrap(StringBuilder builder, String start, String end) {
2008
2008
* the length() is smaller than {@link #PARCEL_SAFE_TEXT_LENGTH}. Used for text that is parceled
2009
2009
* into a {@link Parcelable}.
2010
2010
*
2011
- * @hide
2011
+ *
2012
2012
*/
2013
2013
@ Nullable
2014
2014
public static <T extends CharSequence > T trimToParcelableSize (@ Nullable T text ) {
@@ -2022,7 +2022,7 @@ public static <T extends CharSequence> T trimToParcelableSize(@Nullable T text)
2022
2022
*
2023
2023
* @param size length of the result, should be greater than 0
2024
2024
*
2025
- * @hide
2025
+ *
2026
2026
*/
2027
2027
@ Nullable
2028
2028
public static <T extends CharSequence > T trimToSize (@ Nullable T text ,
0 commit comments