public boolean matches(String sa){
  if (_length != sa.length())   return false;
  char[] buffer=_buffer;
  int offset=_offset;
  for (int i=_length - 1; i >= 0; i--)   if (_buffer[_offset + i] != sa.charAt(i))   return false;
  return true;
}

public boolean matches ( String sa ) { if ( _length != sa . length ( ) ) return false ; char [ ] buffer = _buffer ; int offset = _offset ; for ( int i = _length - 1 ; i >= 0 ; i -- ) if ( _buffer [ _offset + i ] != sa . charAt ( i ) ) return false ; return true ; }
returns true if the charsegment matches the string .
