|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.util.GeoUri.Builder
public static class GeoUri.Builder
Builder class for GeoUri.
| Constructor Summary | |
|---|---|
GeoUri.Builder(Double coordA,
Double coordB)
Creates a new GeoUri builder. |
|
GeoUri.Builder(GeoUri original)
Creates a new GeoUri builder. |
|
| Method Summary | |
|---|---|
GeoUri |
build()
Builds the final GeoUri object. |
GeoUri.Builder |
coordA(Double coordA)
Sets the first coordinate (latitude). |
GeoUri.Builder |
coordB(Double coordB)
Sets the second coordinate (longitude). |
GeoUri.Builder |
coordC(Double coordC)
Sets the third coordinate (altitude). |
GeoUri.Builder |
crs(String crs)
Sets the coordinate reference system. |
GeoUri.Builder |
parameter(String name,
String value)
Adds a parameter. |
GeoUri.Builder |
uncertainty(Double uncertainty)
Sets the uncertainty (how accurate the coordinates are). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoUri.Builder(Double coordA,
Double coordB)
GeoUri builder.
coordA - the first coordinate (i.e. latitude)coordB - the second coordinate (i.e. longitude)public GeoUri.Builder(GeoUri original)
GeoUri builder.
original - the GeoUri object to copy from| Method Detail |
|---|
public GeoUri.Builder coordA(Double coordA)
coordA - the first coordinate
public GeoUri.Builder coordB(Double coordB)
coordB - the second coordinate
public GeoUri.Builder coordC(Double coordC)
coordC - the third coordinate or null to remove
public GeoUri.Builder crs(String crs)
crs - the coordinate reference system (can only contain letters,
numbers, and hyphens) or null to use the default (WGS-84)
IllegalArgumentException - if the CRS name contains invalid
characterspublic GeoUri.Builder uncertainty(Double uncertainty)
uncertainty - the uncertainty (in meters) or null to remove
public GeoUri.Builder parameter(String name,
String value)
name - the parameter name (can only contain letters, numbers,
and hyphens)value - the parameter value or null to remove the parameter
IllegalArgumentException - if the parameter name contains
invalid characterspublic GeoUri build()
GeoUri object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||