public static AccessRestrictionType fromName(String name) { for (AccessRestrictionType type : values()) { if (type.name().equalsIgnoreCase(name)) { return type; } } return NONE; }
public boolean atLeast(AccessRestrictionType type) { return this.ordinal() >= type.ordinal(); }
public boolean exceeds(AccessRestrictionType type) { return this.ordinal() > type.ordinal(); }