Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - make default output param from step expression more descr…
Browse files Browse the repository at this point in the history
…iptive, add param to javadoc (#11501)
  • Loading branch information
tobrun authored Mar 22, 2018
1 parent 1eb90c1 commit 61e6e62
Showing 1 changed file with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1523,13 +1523,14 @@ public static Stop stop(@NonNull Object stop, @NonNull Object value) {
* Returns the output value of the stop just less than the input,
* or the first input if the input is less than the first stop.
*
* @param input the input value
* @param stops pair of input and output values
* @param input the input value
* @param defaultOutput the default output expression
* @param stops pair of input and output values
* @return expression
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-step">Style specification</a>
*/
public static Expression step(@NonNull Number input, @NonNull Expression expression, Expression... stops) {
return step(literal(input), expression, stops);
public static Expression step(@NonNull Number input, @NonNull Expression defaultOutput, Expression... stops) {
return step(literal(input), defaultOutput, stops);
}

/**
Expand All @@ -1539,13 +1540,14 @@ public static Expression step(@NonNull Number input, @NonNull Expression express
* Returns the output value of the stop just less than the input,
* or the first input if the input is less than the first stop.
*
* @param expression the input expression
* @param stops pair of input and output values
* @param input the input expression
* @param defaultOutput the default output expression
* @param stops pair of input and output values
* @return expression
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-step">Style specification</a>
*/
public static Expression step(@NonNull Expression input, @NonNull Expression expression, Expression... stops) {
return new Expression("step", join(new Expression[] {input, expression}, stops));
public static Expression step(@NonNull Expression input, @NonNull Expression defaultOutput, Expression... stops) {
return new Expression("step", join(new Expression[] {input, defaultOutput}, stops));
}

/**
Expand All @@ -1555,13 +1557,14 @@ public static Expression step(@NonNull Expression input, @NonNull Expression exp
* Returns the output value of the stop just less than the input,
* or the first input if the input is less than the first stop.
*
* @param input the input value
* @param stops pair of input and output values
* @param input the input value
* @param defaultOutput the default output expression
* @param stops pair of input and output values
* @return expression
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-step">Style specification</a>
*/
public static Expression step(@NonNull Number input, @NonNull Expression expression, Stop... stops) {
return step(literal(input), expression, Stop.toExpressionArray(stops));
public static Expression step(@NonNull Number input, @NonNull Expression defaultOutput, Stop... stops) {
return step(literal(input), defaultOutput, Stop.toExpressionArray(stops));
}

/**
Expand All @@ -1571,13 +1574,14 @@ public static Expression step(@NonNull Number input, @NonNull Expression express
* Returns the output value of the stop just less than the input,
* or the first input if the input is less than the first stop.
*
* @param input the input value
* @param stops pair of input and output values
* @param input the input value
* @param defaultOutput the default output expression
* @param stops pair of input and output values
* @return expression
* @see <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/#expressions-step">Style specification</a>
*/
public static Expression step(@NonNull Expression input, @NonNull Expression expression, Stop... stops) {
return step(input, expression, Stop.toExpressionArray(stops));
public static Expression step(@NonNull Expression input, @NonNull Expression defaultOutput, Stop... stops) {
return step(input, defaultOutput, Stop.toExpressionArray(stops));
}

/**
Expand Down

0 comments on commit 61e6e62

Please sign in to comment.