zj
2024-08-02 815342ea90c689561adeecca3230b5b5f8ddc2b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package project.wallet.consumer;
 
import java.util.HashSet;
import java.util.Set;
 
public class WalletLockFilter {
    private static final Set<String> filter = new HashSet<String>();
 
    public static boolean add(String target) {
        if (!filter.add(target)) {
            return false;
        } else {
            return true;
        }
    }
 
    public static void remove(String target) {
        filter.remove(target);
    }
 
}