/** * Checks if the given level is the same as, or higher in order than the level this method is executed on. */ public boolean isAtLeast(HistoryLevel level) { // Comparing enums actually compares the location of values declared in // the enum return this.compareTo(level) >= 0; } }