CharSequenceKt
Added in 1.1.0
public final class CharSequenceKt
Summary
Public methods |
|
|---|---|
static final boolean |
isDigitsOnly(@NonNull CharSequence receiver)Returns whether the given |
static final int |
trimmedLength(@NonNull CharSequence receiver)Returns the length that the specified |
Public methods
isDigitsOnly
public static final boolean isDigitsOnly(@NonNull CharSequence receiver)
Returns whether the given CharSequence contains only digits.
| See also | |
|---|---|
isDigitsOnly |
trimmedLength
public static final int trimmedLength(@NonNull CharSequence receiver)
Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String.trim.
| See also | |
|---|---|
getTrimmedLength |