コード例 #1
0
 /**
  * Searches for a parameter value and creates one if it cannot be found. All objects are
  * guaranteed to be unique, so they can be compared with {@code ==} equality.
  *
  * @param value the parameter value
  * @return the object
  */
 public static RelationshipType get(String value) {
   return enums.get(value);
 }
コード例 #2
0
 /**
  * Gets all of the parameter values that are defined as static constants in this class.
  *
  * @return the parameter values
  */
 public static Collection<RelationshipType> all() {
   return enums.all();
 }
コード例 #3
0
 /**
  * Searches for a parameter value that is defined as a static constant in this class.
  *
  * @param value the parameter value
  * @return the object or null if not found
  */
 public static RelationshipType find(String value) {
   return enums.find(value);
 }