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

com.nimbusds.infinispan.persistence.common.query.MultiMatchQuery Maven / Gradle / Ivy

package com.nimbusds.infinispan.persistence.common.query;


import java.util.Map;

import net.jcip.annotations.Immutable;


/**
 * Multi-match query.
 *
 * 
 * key-A == value-A && key-B == value-B && ...
 * 
*/ @Immutable public class MultiMatchQuery implements MatchQuery { /** * The key / value map. */ private final Map matchMap; /** * Creates a new multi-match query with the specified key / value pairs * to match. * * @param matchMap The key / value match map. Must not be {@code null}. */ public MultiMatchQuery(final Map matchMap) { if (matchMap == null) throw new IllegalArgumentException("The key / value map must not be null"); this.matchMap = matchMap; } @Override public Map getMatchMap() { return matchMap; } @Override public String toString() { return matchMap.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy