Skip to content

Commit

Permalink
got rid of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VysotskiVadim committed Aug 16, 2022
1 parent ea1fbfd commit 43bae13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ public final class DirectionsCriteria {
*/
public static final String ANNOTATION_CLOSURE = "closure";

/**
* The tendency value conveys the changing
* state of traffic congestion (increasing, decreasing, constant etc).
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final String ANNOTATION_TRAFFIC_TENDENCY = "traffic_tendency";

/**
Expand Down Expand Up @@ -277,34 +274,22 @@ public final class DirectionsCriteria {
*/
public static final String APPROACH_CURB = "curb";

/***
* Conveys the changing state of traffic congestion: unknown.
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final int TRAFFIC_TENDENCY_UNKNOWN = 0;

/***
* Conveys the changing state of traffic congestion: constant.
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final int TRAFFIC_TENDENCY_CONSTANT_CONGESTION = 1;

/***
* Conveys the changing state of traffic congestion: increasing.
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final int TRAFFIC_TENDENCY_INCREASING_CONGESTION = 2;

/***
* Conveys the changing state of traffic congestion: decreasing.
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final int TRAFFIC_TENDENCY_DECREASING_CONGESTION = 3;

/***
* Conveys the changing state of traffic congestion: rapidly increasing.
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final int TRAFFIC_TENDENCY_RAPIDLY_INCREASING_CONGESTION = 4;

/***
* Conveys the changing state of traffic congestion: rapidly decreasing.
*/
@SuppressWarnings("checkstyle:javadocvariable")
public static final int TRAFFIC_TENDENCY_RAPIDLY_DECREASING_CONGESTION = 5;

private DirectionsCriteria() {
Expand Down Expand Up @@ -456,12 +441,7 @@ private DirectionsCriteria() {
public @interface ApproachesCriteria {
}

/**
* Retention policy for the traffic tendency annotations.
* The tendency value conveys the changing state of traffic
* congestion (increasing, decreasing, constant etc). New values
* could be introduced in the future without an API version change.
*/
@SuppressWarnings("checkstyle:javadoctype")
@Retention(RetentionPolicy.CLASS)
@IntDef({
TRAFFIC_TENDENCY_UNKNOWN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,7 @@ public static Builder builder() {
@SerializedName("congestion_numeric")
public abstract List<Integer> congestionNumeric();

/**
* The traffic tendency between each pair of coordinates.
* @return a list of {@link Integer} where each value matches
* {@link DirectionsCriteria.TrafficTendencyCriteria}. The tendency value conveys the changing
* state of traffic congestion (increasing, decreasing, constant etc). New values
* could be introduced in the future without an API version change.
*/
@SuppressWarnings("checkstyle:javadocmethod")
@Nullable
@SerializedName("traffic_tendency")
public abstract List<Integer> trafficTendency();
Expand Down Expand Up @@ -208,12 +202,7 @@ public abstract static class Builder extends DirectionsJsonObject.Builder<Builde
*/
public abstract Builder congestionNumeric(@Nullable List<Integer> congestionNumeric);

/**
* The traffic tendency between each pair of coordinates.
* @param trafficTendency is a list of {@link Integer} where each value matches
* {@link DirectionsCriteria.TrafficTendencyCriteria}. The tendency value conveys the changing
* state of traffic congestion (increasing, decreasing, constant etc).
*/
@SuppressWarnings("checkstyle:javadocmethod")
@NonNull
public abstract Builder trafficTendency(@Nullable List<Integer> trafficTendency);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ public List<Integer> layersList() {
* {@link DirectionsCriteria#ANNOTATION_CONGESTION_NUMERIC}
* {@link DirectionsCriteria#ANNOTATION_MAXSPEED}
* {@link DirectionsCriteria#ANNOTATION_CLOSURE}
* {@link DirectionsCriteria#ANNOTATION_TRAFFIC_TENDENCY}
* See the {@link RouteLeg} object for more details on what is included with annotations.
* <p>
* Must be used in conjunction with {@link DirectionsCriteria#OVERVIEW_FULL}
Expand All @@ -369,7 +368,6 @@ public List<Integer> layersList() {
* {@link DirectionsCriteria#ANNOTATION_CONGESTION_NUMERIC}
* {@link DirectionsCriteria#ANNOTATION_MAXSPEED}
* {@link DirectionsCriteria#ANNOTATION_CLOSURE}
* {@link DirectionsCriteria#ANNOTATION_TRAFFIC_TENDENCY}
* See the {@link RouteLeg} object for more details on what is included with annotations.
* <p>
* Must be used in conjunction with {@link DirectionsCriteria#OVERVIEW_FULL}
Expand Down Expand Up @@ -1439,7 +1437,6 @@ public abstract Builder overview(
* {@link DirectionsCriteria#ANNOTATION_CONGESTION_NUMERIC}
* {@link DirectionsCriteria#ANNOTATION_MAXSPEED}
* {@link DirectionsCriteria#ANNOTATION_CLOSURE}
* {@link DirectionsCriteria#ANNOTATION_TRAFFIC_TENDENCY}
* See the {@link RouteLeg} object for more details on what is included with annotations.
* <p>
* Must be used in conjunction with {@link DirectionsCriteria#OVERVIEW_FULL}
Expand All @@ -1461,7 +1458,6 @@ public abstract Builder overview(
* {@link DirectionsCriteria#ANNOTATION_CONGESTION_NUMERIC}
* {@link DirectionsCriteria#ANNOTATION_MAXSPEED}
* {@link DirectionsCriteria#ANNOTATION_CLOSURE}
* {@link DirectionsCriteria#ANNOTATION_TRAFFIC_TENDENCY}
* See the {@link RouteLeg} object for more details on what is included with annotations.
* <p>
* Must be used in conjunction with {@link DirectionsCriteria#OVERVIEW_FULL}
Expand Down

0 comments on commit 43bae13

Please sign in to comment.