com.arcao.geocaching.api.impl.live_geocaching_api.filter
Class TerrainFilter

java.lang.Object
  extended by com.arcao.geocaching.api.impl.live_geocaching_api.filter.TerrainFilter
All Implemented Interfaces:
JsonSerializable, Filter

public class TerrainFilter
extends Object
implements Filter


Field Summary
protected  float max
           
protected  float min
           
 
Constructor Summary
TerrainFilter(float min, float max)
           
 
Method Summary
 float getMax()
           
 float getMin()
           
 String getName()
          Get a name of filter
 boolean isValid()
          Is filter valid, mean can be used?
 void writeJson(com.google.gson.stream.JsonWriter w)
          Called during serialization process and must be implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

protected final float min

max

protected final float max
Constructor Detail

TerrainFilter

public TerrainFilter(float min,
                     float max)
Method Detail

getName

public String getName()
Description copied from interface: Filter
Get a name of filter

Specified by:
getName in interface Filter
Returns:
name of filter

getMin

public float getMin()

getMax

public float getMax()

isValid

public boolean isValid()
Description copied from interface: Filter
Is filter valid, mean can be used?

Specified by:
isValid in interface Filter
Returns:
true if the filter is valid otherwise false

writeJson

public void writeJson(com.google.gson.stream.JsonWriter w)
               throws IOException
Description copied from interface: JsonSerializable
Called during serialization process and must be implemented.

Specified by:
writeJson in interface JsonSerializable
Parameters:
w - JsonWriter object for writing output
Throws:
IOException - If I/O error occurs


Copyright © 2012. All Rights Reserved.