AAI-1523 Batch reformat aai-schema-ingest
[aai/aai-common.git] / aai-schema-ingest / src / main / java / org / onap / aai / edges / enums / MultiplicityRule.java
index a29b4a6..ed00f15 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.edges.enums;
 
 public enum MultiplicityRule {
-       MANY2ONE,
-       ONE2MANY,
-       ONE2ONE,
-       MANY2MANY;
-       
-       public static MultiplicityRule getValue(String multiplicity) {
-               if ("Many2Many".equalsIgnoreCase(multiplicity)) {
-                       return MANY2MANY;
-               } else if ("One2Many".equalsIgnoreCase(multiplicity)) {
-                       return ONE2MANY;
-               } else if ("One2One".equalsIgnoreCase(multiplicity)) {
-                       return ONE2ONE;
-               } else { //should be "Many2One"
-                       return MANY2ONE;
-               }
-       }
+    MANY2ONE, ONE2MANY, ONE2ONE, MANY2MANY;
+
+    public static MultiplicityRule getValue(String multiplicity) {
+        if ("Many2Many".equalsIgnoreCase(multiplicity)) {
+            return MANY2MANY;
+        } else if ("One2Many".equalsIgnoreCase(multiplicity)) {
+            return ONE2MANY;
+        } else if ("One2One".equalsIgnoreCase(multiplicity)) {
+            return ONE2ONE;
+        } else { // should be "Many2One"
+            return MANY2ONE;
+        }
+    }
 }