branch feature/3745 updated (dd8b076 -> 253148f)
This is an automated email from the git hooks/post-receive script. New change to branch feature/3745 in repository eugene. See http://git.nuiton.org/eugene.git from dd8b076 Pouvoir générer des méthodes utiles (predicat, function) sur des beans (refs #3745) new 253148f Add usefull method to get the wrap primitive type The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: 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 Summary of changes: .../main/java/org/nuiton/eugene/GeneratorUtil.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/3745 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>.
participants (1)
-
nuiton.org scm