/*
 * @author Ranides Atterwim <ranides@gmail.com>
 * @copyright Ranides Atterwim
 * @license WTFPL
 * @url http://ranides.net/projects/assira.drafts
 */
package net.ranides.assira.collections.map;

import java.util.Comparator;
import java.util.function.Consumer;
import java.util.function.Function;
import net.ranides.assira.collection.query.CQuery;

/**
 *
 * @author Ranides Atterwim <ranides@gmail.com>
 */
public interface IndexQuery<V> extends CQuery<V> {
    

    IndexQuery<V> eq(Comparator<V> index, V value);
    
    <T> IndexQuery<V> eq(Function<V,T> index, T value);

    IndexQuery<V> eq(String index, Object value);
    

    
    IndexQuery<V> gt(Comparator<V> index, V value);
    
    <T> IndexQuery<V> gt(Function<V,T> index, T value);

    IndexQuery<V> gt(String index, Object value);
    
    
    
    IndexQuery<V> lt(Comparator<V> index, V value);
    
    <T> IndexQuery<V> lt(Function<V,T> index, T value);

    IndexQuery<V> lt(String index, Object value);
    
    

    IndexQuery<V> in(Comparator<V> index, V begin, V end);
    
    <T> IndexQuery<V> in(Function<V,T> index, T begin, T end);

    IndexQuery<V> in(String index, Object begin, Object end);

    
    
    void remove();

    void update(Consumer<? super V> consumer);
    
}
