Convert a CharBuffer
into a WrappedCharArray
.
Convert a CharBuffer
into a WrappedCharArray
. If the CharBuffer
has an accessible backing
array, this will involve no copying of character data and so changes to that array will be reflected
in the resulting WrappedCharArray
. Whether or not there is a backing array, after this call the
CharBuffer
has been marked as fully consumed.
Convert a String
into a WrappedCharArray
.
Convert a String
into a WrappedCharArray
. If canConvertFromStringWithoutCopying
is
true, this will involve no copying of character data.
Convert an entire array into a WrappedCharArray
.
Convert an entire array into a WrappedCharArray
. The new object will be backed by the
array, and so changes to the array's contents will be reflected in the resulting WrappedCharArray
.
Convert a slice of an array into a WrappedCharArray
.
Convert a slice of an array into a WrappedCharArray
. The new object will be backed by the
array, and so changes to the array's contents will be reflected in the resulting WrappedCharArray
.
Indicates whether a WrappedCharArray
that originally came from a String
can avoid copying
in its toString
method.
Indicates whether apply(String)
can avoid copying.
Indicates whether apply(CharBuffer)
can avoid copying read-only array-backed
char buffers.