Code example for NavigableSet

Methods: ceilingfirst

0
            valueResult.setResult(afterTimeCalendar.get(getCalendarField()));
            valueResult.setNeedsIncrement(true);
        } 
 
 
        Integer foundValue = allValues.ceiling(currentFieldValue);
        if (foundValue != null) {
            valueResult.setResult(foundValue.intValue());
        } else { 
            // use the next first available value 
            valueResult.setResult(allValues.first());
            valueResult.setNeedsIncrement(true);
        } 
 
        return valueResult;
 
    } 
 
 
    /** 
Experience pair programming with AI  Get Codota for Java