diff options
Diffstat (limited to 'catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/utils/IdBuilderUtils.java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/utils/IdBuilderUtils.java | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/utils/IdBuilderUtils.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/utils/IdBuilderUtils.java index acd6969a71..ff28ee8394 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/utils/IdBuilderUtils.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/jsongraph/utils/IdBuilderUtils.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,28 +17,26 @@ * limitations under the License. * ============LICENSE_END========================================================= */ - package org.openecomp.sdc.be.dao.jsongraph.utils; -import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum; - import java.util.UUID; +import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum; public class IdBuilderUtils { - private static String DOT = "."; - - public static String generateChildId(String componentId, VertexTypeEnum type){ - StringBuilder sb = new StringBuilder(componentId); - sb.append(DOT).append(type.getName()); - return sb.toString(); - } - - public static String generateUUID(){ - return UUID.randomUUID().toString(); - } - - public static String generateUniqueId(){ - return UUID.randomUUID().toString(); - } + private static String DOT = "."; + + public static String generateChildId(String componentId, VertexTypeEnum type) { + StringBuilder sb = new StringBuilder(componentId); + sb.append(DOT).append(type.getName()); + return sb.toString(); + } + + public static String generateUUID() { + return UUID.randomUUID().toString(); + } + + public static String generateUniqueId() { + return UUID.randomUUID().toString(); + } } |