private void reset(Buffer value, long numValue, int revision)
{
_revision = revision;
if (_value == null)
{
_value = value.isImmutable() ? value : new View(value);
_numValue = numValue;
_stringValue=null;
}
else if (value.isImmutable())
{
_value = value;
_numValue = numValue;
_stringValue=null;
}
else
{
if (_value instanceof View)
((View) _value).update(value);
else
_value = new View(value);
_numValue = numValue;
// check to see if string value is still valid.
if (_stringValue!=null)
{