public abstract class ReverseCharSequence extends Object implements CharSequence
| Constructor and Description |
|---|
ReverseCharSequence() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CharSequence |
original() |
static CharSequence |
reverse(CharSequence subject) |
static String |
reverseByCopy(CharSequence subject)
Returns a string that is the "logical reverse" of the cs, i.e. surrogate pairs and CR-LF pairs are
not reversed.
|
static CharSequence |
reverseInPlace(CharSequence subject)
Returns a
CharSequence that is the "logical reverse" of the cs, i.e. surrogate pairs and
CR-LF pairs are not reversed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharAt, chars, codePoints, length, subSequence, toStringprotected abstract CharSequence original()
public static CharSequence reverse(CharSequence subject)
reverseByCopy(CharSequence) or reverseInPlace(CharSequence)public static String reverseByCopy(CharSequence subject)
public static CharSequence reverseInPlace(CharSequence subject)
CharSequence that is the "logical reverse" of the cs, i.e. surrogate pairs and
CR-LF pairs are not reversed. The returned CharSequence is based on the original, thus, the
behavior of the returned CharSequence is undefined if the original changes.Copyright © 2017 Arno Unkrig. All rights reserved.