if (otherObject instanceof AWElementIdGenerator) {
AWElementIdGenerator charArrayElementId = (AWElementIdGenerator)otherObject;
// note: charArrayElementId._path may have empty capacity on the end,
// so must use charArrayElementId._pathLength.
AWArrayManager charArrayManager = charArrayElementId.charArrayManager();
otherPath = (char[])charArrayManager.array();
otherPathLength = charArrayManager.size();
}
else if (otherObject instanceof AWElementIdPath) {
AWElementIdPath elementIdPath = (AWElementIdPath)otherObject;
// here elementIdPath._path has no empty capacity on its end, so can use otherPath.thisPathLength.