-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added removeDeep function to JSONArray and JSONObject
- Loading branch information
1 parent
5bf6166
commit 4ccb604
Showing
4 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/main/java/dev/latvian/apps/webutils/json/DeepRemovePredicate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dev.latvian.apps.webutils.json; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
@FunctionalInterface | ||
public interface DeepRemovePredicate { | ||
DeepRemovePredicate NONE = (key, index, value) -> false; | ||
|
||
boolean remove(String key, int index, @Nullable Object value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters