compare
public int compare(TreatmentStep step1,
TreatmentStep step2)
Compare treatment steps according to their treatment level. The
comparison result is the same as the result of comparing the treatment
level. Note that while any two steps may be compared by this comparison,
the results may not make sense physically (e.g. comparing a temperature
with an AF field strength).
- Specified by:
compare
in interface java.util.Comparator<TreatmentStep>
- Parameters:
step1
- the first step to be compared
step2
- the second step to be compared
- Returns:
- a negative integer, zero, or a positive integer as the treatment
level of the first step is less than, equal to, or greater than that of
the second step.