Code example for NavigableSet

Methods: add

0
     */ 
    @SuppressWarnings("boxing") 
    private void init() { 
        int current = this.startingPoint;
 
        this.allValues.add(current);
        current += this.interval;
        while (current < getCalendar().getMaximum(getCalendarField())) {
            this.allValues.add(current);
            current += this.interval;
        } 
    } 
 
    /** 
     * @param afterTimeCalendar the calendar to use in order to compute the next available value 
     * @return the next value result for the given calendar for the calendard field associated. 
     */ 
    @Override 
    @SuppressWarnings("boxing") 
    public ValueResult getTimeAfter(final Calendar afterTimeCalendar) {
Contextual code suggestions in your IDE  Get Codota for Java