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

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

public class PointRadiusFilter
extends Object
implements Filter


Field Summary
protected  long distanceInMeters
           
protected  double latitude
           
protected  double longitude
           
 
Constructor Summary
PointRadiusFilter(double latitude, double longitude, long distanceInMeters)
           
 
Method Summary
 long getDistanceInMeters()
           
 double getLatitude()
           
 double getLongitude()
           
 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

distanceInMeters

protected long distanceInMeters

latitude

protected double latitude

longitude

protected double longitude
Constructor Detail

PointRadiusFilter

public PointRadiusFilter(double latitude,
                         double longitude,
                         long distanceInMeters)
Method Detail

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getDistanceInMeters

public long getDistanceInMeters()

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

getName

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

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


Copyright © 2012. All Rights Reserved.