This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository eugene. See http://git.nuiton.org/eugene.git commit 253148f80d06a2c118c0cc3260dd16a129e79869 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Aug 14 18:50:04 2015 +0200 Add usefull method to get the wrap primitive type --- .../main/java/org/nuiton/eugene/GeneratorUtil.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/eugene/src/main/java/org/nuiton/eugene/GeneratorUtil.java b/eugene/src/main/java/org/nuiton/eugene/GeneratorUtil.java index bb3afdf..3e5ada9 100644 --- a/eugene/src/main/java/org/nuiton/eugene/GeneratorUtil.java +++ b/eugene/src/main/java/org/nuiton/eugene/GeneratorUtil.java @@ -159,6 +159,40 @@ public class GeneratorUtil { } /** + * @param type primitive type + * @return the wrap primitive type + * @since 3.0 + */ + public static String getPRimitiveWrapType(String type) { + if ("byte".equals(type)) { + return "Byte"; + } + if ("short".equals(type)) { + return "Short"; + } + if ("int".equals(type)) { + return "Integer"; + } + if ("long".equals(type)) { + return "Long"; + } + if ("float".equals(type)) { + return "Float"; + } + if ("double".equals(type)) { + return "Double"; + } + if ("char".equals(type)) { + return "Character"; + } + if ("boolean".equals(type)) { + return "Boolean"; + } + + return null; + } + + /** * return an init value for the specified attribute * * @param attribute the attribute to test -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.