All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wix.restaurants.availability.AvailabilityIterator Maven / Gradle / Ivy

package com.wix.restaurants.availability;

import java.util.Calendar;
import java.util.Iterator;

public class AvailabilityIterator implements Iterator {
    private final MergingStatusIterator it;

    public AvailabilityIterator(Calendar cal, Availability availability) {
        it = new MergingStatusIterator(new TimeWindowsIterator(cal, availability));
    }

    @Override
    public boolean hasNext() {
        return it.hasNext();
    }

    @Override
    public Status next() {
        return it.next();
    }

    @Override
    public void remove() {
        it.remove();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy