code: public boolean canStoreCompact()
    {
      final long exactCount = getExactCount();
      return (size <= Short.MAX_VALUE && exactCount <= Byte.MAX_VALUE && (count - exactCount) <= Byte.MAX_VALUE);
    }
docs: Checks whether this approximate histogram can be stored in a compact form
  
  @return true if yes, false otherwise