Spring Data Solr

org.springframework.data.solr.core.query
Class QueryParameterImpl

java.lang.Object
  extended by org.springframework.data.solr.core.query.QueryParameterImpl
All Implemented Interfaces:
QueryParameter
Direct Known Subclasses:
FacetOptions.FacetParameter, HighlightOptions.HighlightParameter

public class QueryParameterImpl
extends Object
implements QueryParameter

Trivial implementation of QueryParameter.

Author:
Christoph Strobl

Constructor Summary
QueryParameterImpl(String name, Object value)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 Object getValue()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParameterImpl

public QueryParameterImpl(String name,
                          Object value)
Parameters:
name - must not be null
value -
Method Detail

getName

public String getName()
Specified by:
getName in interface QueryParameter
Returns:

getValue

public Object getValue()
Specified by:
getValue in interface QueryParameter
Returns:
null if not set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.