@SuppressWarnings("unchecked")
  @Override
  public boolean equals(final Object other) {
    if (!(other instanceof FlexStack)) {
      return false;
    }

    final FlexStack<T> that = (FlexStack<T>) other;
    if (this.currentCapacity != that.currentCapacity) {
      return false;
    }
    for (int i = 0; i < currentCapacity; i++) {
      if (!Objects.deepEquals(this.entries[i], that.entries[i])) {
        return false;
      }
    }
    return true;
  }
Size of entries.

@return the size
evm/src/main/java/org/hyperledger/besu/evm/internal/FlexStack.java