Package org.jheaps.annotations
Annotation Type 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 ElementDescriptionbooleanWhether the running time is amortized or actual.
-
Element Details
-
amortized
boolean amortizedWhether the running time is amortized or actual.- Returns:
trueif amortized,falseif actual
- Default:
false
-