summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2016-08-08 21:51:52 -0400
committerTobrun <tobrun.van.nuland@gmail.com>2016-08-08 21:51:52 -0400
commit63efa9bf7d7df678b6061eea722ead20f8328b02 (patch)
treec2b74c7bc261dde32c07ba1aab3d37e5ccfea69b /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
parent82f19b94f7697d18adf6f9d0eb3b5b3d3b67e4a4 (diff)
downloadqtlocation-mapboxgl-63efa9bf7d7df678b6061eea722ead20f8328b02.tar.gz
[android] #5880 - javadoc cleanup part one
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs27
1 files changed, 24 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
index c7424bc31e..8508a735e6 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property_factory.java.ejs
@@ -11,19 +11,25 @@ import android.support.annotation.ColorInt;
/**
* Constructs paint/layout properties for Layers
*
- * @see <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layers>Layer style documentation</a>
+ * @see <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layers">Layer style documentation</a>
*/
public class PropertyFactory {
/**
- * Set visibility
+ * Set the property visibility.
+ *
+ * @param value the visibility value
+ * @return property wrapper around visibility
*/
public static Property<String> visibility(@Property.VISIBILITY String value) {
return new LayoutProperty<>("visibility", value);
}
/**
- * Set visibility
+ * Set the property visibility.
+ *
+ * @param function the visibility function
+ * @return property wrapper around a String function
*/
public static Property<Function<String>> visibility(Function<String> function) {
return new LayoutProperty<>("visibility", function);
@@ -33,6 +39,9 @@ public class PropertyFactory {
<% if (property.type == 'color') { -%>
/**
* <%- property.doc %>
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property<String> <%- camelizeWithLeadingLowercase(property.name) %>(@ColorInt int value) {
return new PaintProperty<>("<%- property.name %>", colorToRgbaString(value));
@@ -41,6 +50,9 @@ public class PropertyFactory {
<% } -%>
/**
* <%- property.doc %>
+ *
+ * @param value a <%- propertyType(property) %> value
+ * @return property wrapper around <%- propertyType(property) %>
*/
public static Property<<%- propertyType(property) %>> <%- camelizeWithLeadingLowercase(property.name) %>(<%- propertyTypeAnnotation(property) %><%- iff(() => propertyTypeAnnotation(property), " ") %><%- propertyType(property) %> value) {
return new PaintProperty<>("<%- property.name %>", value);
@@ -48,6 +60,9 @@ public class PropertyFactory {
/**
* <%- property.doc %>
+ *
+ * @param function a wrapper function for <%- propertyType(property) %>
+ * @return property wrapper around a <%- propertyType(property) %> function
*/
public static Property<Function<<%- propertyType(property) %>>> <%- camelizeWithLeadingLowercase(property.name) %>(Function<<%- propertyType(property) %>> function) {
return new PaintProperty<>("<%- property.name %>", function);
@@ -57,6 +72,9 @@ public class PropertyFactory {
<% for (const property of layoutProperties) { -%>
/**
* <%- property.doc %>
+ *
+ * @param value a <%- propertyType(property) %> value
+ * @return property wrapper around <%- propertyType(property) %>
*/
public static Property<<%- propertyType(property) %>> <%- camelizeWithLeadingLowercase(property.name) %>(<%- propertyTypeAnnotation(property) %><%- iff(() => propertyTypeAnnotation(property), " ") %><%- propertyType(property) %> value) {
return new LayoutProperty<>("<%- property.name %>", value);
@@ -64,6 +82,9 @@ public class PropertyFactory {
/**
* <%- property.doc %>
+ *
+ * @param function a wrapper function for <%- propertyType(property) %>
+ * @return property wrapper around a <%- propertyType(property) %> function
*/
public static Property<Function<<%- propertyType(property) %>>> <%- camelizeWithLeadingLowercase(property.name) %>(Function<<%- propertyType(property) %>> function) {
return new LayoutProperty<>("<%- property.name %>", function);