public boolean isEmpty() {
    return numNonNullElements == 0;
  }
Returns whether there are non-null elements in the list
@return whether there are non-null elements in the list
hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLocations.java