summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2018-11-02 15:53:31 +0100
committerTobrun <tobrun@mapbox.com>2018-11-07 18:32:07 +0100
commit81258a25539e9edb29a744c85de294a6b5c15bd3 (patch)
treefdfa6fad6ba02de5adf62961948f4abb836a7e90 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java
parentc8f59d3692ad086bf49c3a97335a23804a503dd3 (diff)
downloadqtlocation-mapboxgl-81258a25539e9edb29a744c85de294a6b5c15bd3.tar.gz
[android] - nullify codebase with annotations
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java
index 331d9b267f..b5a5d6aade 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/CustomGeometrySourceOptions.java
@@ -1,5 +1,7 @@
package com.mapbox.mapboxsdk.style.sources;
+import android.support.annotation.NonNull;
+
import java.util.HashMap;
/**
@@ -13,6 +15,7 @@ public class CustomGeometrySourceOptions extends HashMap<String, Object> {
* @param wrap defaults to false
* @return the current instance for chaining
*/
+ @NonNull
public CustomGeometrySourceOptions withWrap(boolean wrap) {
this.put("wrap", wrap);
return this;
@@ -25,6 +28,7 @@ public class CustomGeometrySourceOptions extends HashMap<String, Object> {
* @param clip defaults to false
* @return the current instance for chaining
*/
+ @NonNull
public CustomGeometrySourceOptions withClip(boolean clip) {
this.put("clip", clip);
return this;
@@ -36,6 +40,7 @@ public class CustomGeometrySourceOptions extends HashMap<String, Object> {
* @param minZoom the minimum zoom - Defaults to 0.
* @return the current instance for chaining
*/
+ @NonNull
public CustomGeometrySourceOptions withMinZoom(int minZoom) {
this.put("minzoom", minZoom);
return this;
@@ -47,6 +52,7 @@ public class CustomGeometrySourceOptions extends HashMap<String, Object> {
* @param maxZoom the maximum zoom - Defaults to 25.5
* @return the current instance for chaining
*/
+ @NonNull
public CustomGeometrySourceOptions withMaxZoom(int maxZoom) {
this.put("maxzoom", maxZoom);
return this;
@@ -59,6 +65,7 @@ public class CustomGeometrySourceOptions extends HashMap<String, Object> {
* @param buffer the buffer size - Defaults to 128.
* @return the current instance for chaining
*/
+ @NonNull
public CustomGeometrySourceOptions withBuffer(int buffer) {
this.put("buffer", buffer);
return this;
@@ -70,6 +77,7 @@ public class CustomGeometrySourceOptions extends HashMap<String, Object> {
* @param tolerance the tolerance - Defaults to 0.375
* @return the current instance for chaining
*/
+ @NonNull
public CustomGeometrySourceOptions withTolerance(float tolerance) {
this.put("tolerance", tolerance);
return this;