Code example for HashSet

Methods: contains

0
    } 
 
    @Override 
    public boolean has(CommandSender sender, String permission) {
        return (sender instanceof Player)
            ? opCommands.contains(permission)
                ? ((Player) sender).isOp()
                : true 
            : true; 
    } 
    @Override 
    public Set<String> hasOfflinePermissions(String player, Set<String> perms) {
        return null; 
    } 
    @Override 
    public boolean hasOfflinePermission(String player, String perm) {
        return false; 
    } 
} 
Experience pair programming with AI  Get Codota for Java