Пример #1
0
 public static AccessRestrictionType fromName(String name) {
   for (AccessRestrictionType type : values()) {
     if (type.name().equalsIgnoreCase(name)) {
       return type;
     }
   }
   return NONE;
 }
Пример #2
0
 public boolean atLeast(AccessRestrictionType type) {
   return this.ordinal() >= type.ordinal();
 }
Пример #3
0
 public boolean exceeds(AccessRestrictionType type) {
   return this.ordinal() > type.ordinal();
 }