package com.mmnaseri.utils.spring.data.sample.usecases.proxy;

import com.mmnaseri.utils.spring.data.proxy.impl.adapters.EmptyIterator;

import javax.annotation.Nonnull;
import java.util.AbstractCollection;
import java.util.Iterator;

/**
 * @author Milad Naseri (m.m.naseri@gmail.com)
 * @since 1.0 (4/12/16, 5:31 PM)
 */
@SuppressWarnings("unused")
class CustomCollectionImplementation extends AbstractCollection {

    @Override
    @Nonnull
    public Iterator iterator() {
        return EmptyIterator.INSTANCE;
    }

    @Override
    public int size() {
        return 0;
    }

}
