Class CharArrayWrapperSequence

Object
org.thymeleaf.util.CharArrayWrapperSequence
All Implemented Interfaces:
CharSequence, Cloneable

public final class CharArrayWrapperSequence extends Object implements CharSequence, Cloneable

Wrapper class that allows the use of char[] objects as CharSequences, without the need to duplicate the char[] contents in memory (as would happen if a String was created from the char[]).

Note that a reference to the original char[] is kept, so modifying this char[] outside this object will result in this object's contents being modified too.

Objects of this class are thread-safe.

Since:
2.0.15
Author:
Daniel Fernández