code: protected boolean isReversed(byte directionality)
      {
          switch (directionality)
          {
              case Character.DIRECTIONALITY_RIGHT_TO_LEFT:
              case Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC:
              case Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING:
              case Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE:
                  return true;
  
              default:
                  return false;
          }
      }
docs: Checks whether the text directionality corresponds to reversed text (very rough)
  @param directionality the Character.directionality
  @return