Beispiel #1
0
 /**
  * Extracts a handle type for the given identifier.
  *
  * @param identifier The identifier to extract a handle type for.
  * @return The representing handle type.
  */
 protected static HandleType of(int identifier) {
   for (HandleType handleType : HandleType.values()) {
     if (handleType.getIdentifier() == identifier) {
       return handleType;
     }
   }
   throw new IllegalArgumentException("Unknown handle type: " + identifier);
 }