Class MutableCharArray

java.lang.Object
org.carrot2.util.MutableCharArray
All Implemented Interfaces:
CharSequence, Cloneable

public final class MutableCharArray
extends Object
implements CharSequence, Cloneable
Implements CharSequence over a mutable char[] buffer.

This class implements proper content-based hashCode() and equals(Object) against other MutableCharArray objects, assuming the underlying character buffers does not change. In case the buffers is changed, the resulting behavior is unpredictable.