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

io.sphere.client.filters.UserInputFilter Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.filters;


import java.util.Map;

/** Filter 'component' that supports a single user entered 'value' (such as price range) and
 *  keeping the state entered value in application's query string.
 *
 *  See also: {@link io.sphere.client.filters.MultiSelectFilter}.
 *
 * @param  Type of the user-entered value.
 * */
public interface UserInputFilter extends Filter {
    /** Returns the value that the user entered for this filter (passed in application's URL). */
    T parseValue(Map queryString);
    /** Removes this filter from application's URL. */
    String getClearLink(Map queryString);
    /** Returns true if the user entered a value for this filter (passed in application's URL). */
    boolean isSet(Map queryString);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy