code: public long[] getEntitiesArray()
      {
          long[] ret = new long[entities.size()];
          for(int i = 0; i < entities.size(); i++)
              ret[i] = entities.get(i);
          return ret;
      }
docs: Returns the array of entities for the condition.
  @return The array of entities