Package org.jheaps.annotations
Annotation Interface ConstantTime
Marker interface to indicate that an operation takes constant time. The
primary purpose of this interface is to allow generic algorithms to alter
their behavior to provide good performance.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Whether the running time is amortized or actual.
-
Element Details
-
amortized
boolean amortizedWhether the running time is amortized or actual.- Returns:
true
if amortized,false
if actual
- Default:
false
-