br.com.caelum.brutauth.util.RulesMap Maven / Gradle / Ivy
package br.com.caelum.brutauth.util;
import java.util.HashMap;
import br.com.caelum.brutauth.auth.rules.BrutauthRule;
public class RulesMap extends HashMap, BrutauthRule> {
private static final long serialVersionUID = 1L;
@Override
public BrutauthRule get(Object key) {
BrutauthRule rule = super.get(key);
if (rule == null) {
throw new IllegalArgumentException();
}
return rule;
}
}