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

Fix Javadoc for removeSource/removeLayer/removeLayerAt #422

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public <T extends Source> T getSourceAs(@NonNull String sourceId) {
* Removes the source from the style.
*
* @param sourceId the source to remove
* @return the source handle or null if the source was not present
* @return true if the source was removed, false otherwise
*/
public boolean removeSource(@NonNull String sourceId) {
validateState("removeSource");
Expand All @@ -169,7 +169,7 @@ public boolean removeSource(@NonNull String sourceId) {
* Removes the source, preserving the reference for re-use
*
* @param source the source to remove
* @return the source
* @return true if the source was removed, false otherwise
*/
public boolean removeSource(@NonNull Source source) {
validateState("removeSource");
Expand Down Expand Up @@ -274,7 +274,7 @@ public List<Layer> getLayers() {
* Removes the layer. Any references to the layer become invalid and should not be used anymore
*
* @param layerId the layer to remove
* @return the removed layer or null if not found
* @return true if the layer was removed, false otherwise
*/
public boolean removeLayer(@NonNull String layerId) {
validateState("removeLayer");
Expand All @@ -286,7 +286,7 @@ public boolean removeLayer(@NonNull String layerId) {
* Removes the layer. The reference is re-usable after this and can be re-added
*
* @param layer the layer to remove
* @return the layer
* @return true if the layer was removed, false otherwise
*/
public boolean removeLayer(@NonNull Layer layer) {
validateState("removeLayer");
Expand All @@ -298,7 +298,7 @@ public boolean removeLayer(@NonNull Layer layer) {
* Removes the layer. Any other references to the layer become invalid and should not be used anymore
*
* @param index the layer index
* @return the removed layer or null if not found
* @return true if the layer was removed, false otherwise
*/
public boolean removeLayerAt(@IntRange(from = 0) int index) {
validateState("removeLayerAt");
Expand Down