@Override
  public final boolean hasRemaining() {
    checkRefCount();
    return this.curItem.hasRemaining() || (this.curItemIndex < this.limitedItemIndex
      && this.items[this.curItemIndex + 1].hasRemaining());
  }
Returns true if there are elements between the current position and the limt
@return true if there are elements, false otherwise
hbase-common/src/main/java/org/apache/hadoop/hbase/nio/MultiByteBuff.java