Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
 
 public class FieldFilter implements Filter {
   private final String fieldName;
   private final String op;
   private final Object arg;
 
  public FieldFilter(String opString fieldNameObject arg) {
    this. = op;
    this. = fieldName;
    this. = arg;
  }

  
Produces JSON representation of the represented filter logic.

For example:

 {"first": {"$eq":"Jack"}}
 {"first": {"$in":["a", "b", "c"]}}
 
  public String toJsonStr() {
    return JsonUtil.toJsonStr(toJsonObject());
  }

  
View this FieldFilter as an object representation that can be serialized as json

Returns:
an object representation of this field filter that can be serialized as json
  @SuppressWarnings({ "rawtypes""unchecked""serial" })
  public Object toJsonObject() {
	  return new HashMap() {
	    	{
	    		put(new HashMap() {
	    			{
	    				put();
	    			}
	    		});
	    	}
	  };
  }
New to GrepCode? Check out our FAQ X