Skip to content

Commit 2cd6e6f

Browse files
committed
Added remove() and removeAll() methods in the Filter class in ServiceRequest
1 parent a5b8b44 commit 2cd6e6f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/javaxt/express/ServiceRequest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,21 @@ public javaxt.utils.Value get(String col){
12781278
}
12791279

12801280

1281+
/** Used to remove an item from the filter
1282+
*/
1283+
public void remove(String col){
1284+
String key = col.toLowerCase();
1285+
items.remove(key);
1286+
}
1287+
1288+
1289+
/** Used to remove all the items from the filter
1290+
*/
1291+
public void removeAll(){
1292+
items.clear();
1293+
}
1294+
1295+
12811296
/** Returns true if the filter is empty
12821297
*/
12831298
public boolean isEmpty(){

0 commit comments

Comments
 (0)