I am porting a C++ library to Java and I need a heap data structure. Is there a standard implementation or will I need to do it myself?
You can also consider TreeSet, which guarantees log(n) time for basic operations (add, remove, contains).