summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java
diff options
context:
space:
mode:
authorCameron Mace <cameron@mapbox.com>2016-12-16 16:19:15 -0500
committerGitHub <noreply@github.com>2016-12-16 16:19:15 -0500
commit20b958301eb208fe9ed0ae8edfb14b6f3741d8f2 (patch)
tree94ae0ce250cda159be13f9a21cc70c92d4908974 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java
parentf95b4838ea816b9da0c151a953a1f98f97c79a39 (diff)
downloadqtlocation-mapboxgl-20b958301eb208fe9ed0ae8edfb14b6f3741d8f2.tar.gz
Adds checkstyle to CI (#7442)
* adds checkstyle to CI * fixed gradlew path * resolved testapp checkstyle violations * added back mapboxMap variable for test * checkstyle annotations * checkstyle SDK round 1 * maps package checkstyle * rest of SDK checkstyle * checkstyle gesture library * checkstyle test * finished rest of test checkstyle * resolved all checkstyle errors * fixed class name * removed old test file * fixed camera postion test * fixed native crash
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java110
1 files changed, 55 insertions, 55 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java
index 9b39d9726f..2878d76430 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/Layer.java
@@ -7,83 +7,83 @@ import android.support.annotation.NonNull;
*/
public abstract class Layer {
- private long nativePtr;
- private boolean invalidated;
+ private long nativePtr;
+ private boolean invalidated;
- public Layer(long nativePtr) {
- this.nativePtr = nativePtr;
- }
+ public Layer(long nativePtr) {
+ this.nativePtr = nativePtr;
+ }
- public Layer() {
- }
+ public Layer() {
+ }
- public void setProperties(@NonNull Property<?>... properties) {
- if (properties.length == 0) {
- return;
- }
-
- for (Property<?> property : properties) {
- Object converted = convertValue(property.value);
- if (property instanceof PaintProperty) {
- nativeSetPaintProperty(property.name, converted);
- } else {
- nativeSetLayoutProperty(property.name, converted);
- }
- }
+ public void setProperties(@NonNull Property<?>... properties) {
+ if (properties.length == 0) {
+ return;
}
- public String getId() {
- return nativeGetId();
+ for (Property<?> property : properties) {
+ Object converted = convertValue(property.value);
+ if (property instanceof PaintProperty) {
+ nativeSetPaintProperty(property.name, converted);
+ } else {
+ nativeSetLayoutProperty(property.name, converted);
+ }
}
+ }
- public PropertyValue<String> getVisibility() {
- return new PropertyValue<>(nativeGetVisibility());
- }
+ public String getId() {
+ return nativeGetId();
+ }
- public float getMinZoom() {
- return nativeGetMinZoom();
- }
+ public PropertyValue<String> getVisibility() {
+ return new PropertyValue<>(nativeGetVisibility());
+ }
- public float getMaxZoom() {
- return nativeGetMaxZoom();
- }
+ public float getMinZoom() {
+ return nativeGetMinZoom();
+ }
- public void setMinZoom(float zoom) {
- nativeSetMinZoom(zoom);
- }
+ public float getMaxZoom() {
+ return nativeGetMaxZoom();
+ }
- public void setMaxZoom(float zoom) {
- nativeSetMaxZoom(zoom);
- }
+ public void setMinZoom(float zoom) {
+ nativeSetMinZoom(zoom);
+ }
- @Override
- protected native void finalize() throws Throwable;
+ public void setMaxZoom(float zoom) {
+ nativeSetMaxZoom(zoom);
+ }
- protected native String nativeGetId();
+ @Override
+ protected native void finalize() throws Throwable;
- protected native Object nativeGetVisibility();
+ protected native String nativeGetId();
- protected native void nativeSetLayoutProperty(String name, Object value);
+ protected native Object nativeGetVisibility();
- protected native void nativeSetPaintProperty(String name, Object value);
+ protected native void nativeSetLayoutProperty(String name, Object value);
- protected native void nativeSetFilter(Object[] filter);
+ protected native void nativeSetPaintProperty(String name, Object value);
- protected native void nativeSetSourceLayer(String sourceLayer);
+ protected native void nativeSetFilter(Object[] filter);
- protected native float nativeGetMinZoom();
+ protected native void nativeSetSourceLayer(String sourceLayer);
- protected native float nativeGetMaxZoom();
+ protected native float nativeGetMinZoom();
- protected native void nativeSetMinZoom(float zoom);
+ protected native float nativeGetMaxZoom();
- protected native void nativeSetMaxZoom(float zoom);
+ protected native void nativeSetMinZoom(float zoom);
- public long getNativePtr() {
- return nativePtr;
- }
+ protected native void nativeSetMaxZoom(float zoom);
- private Object convertValue(Object value) {
- return value != null && value instanceof Function ? ((Function) value).toValueObject() : value;
- }
+ public long getNativePtr() {
+ return nativePtr;
+ }
+
+ private Object convertValue(Object value) {
+ return value != null && value instanceof Function ? ((Function) value).toValueObject() : value;
+ }
}