Author: echatellier Date: 2010-05-06 11:48:36 +0200 (Thu, 06 May 2010) New Revision: 36 Url: http://nuiton.org/repositories/revision/wikitty/36 Log: Add doc about #restore method Modified: trunk/wikitty-api/src/main/java/org/sharengo/wikitty/WikittyProxy.java Modified: trunk/wikitty-api/src/main/java/org/sharengo/wikitty/WikittyProxy.java =================================================================== --- trunk/wikitty-api/src/main/java/org/sharengo/wikitty/WikittyProxy.java 2010-05-03 17:19:57 UTC (rev 35) +++ trunk/wikitty-api/src/main/java/org/sharengo/wikitty/WikittyProxy.java 2010-05-06 09:48:36 UTC (rev 36) @@ -81,12 +81,13 @@ } /** - * - * @param clazz - * @param id + * Restore wikitty entity with specified id or {@code null} if entity can't be found. + * + * @param clazz entity class + * @param id entity id * @param checkExtension if true check that Wikitty result has all extension * declared in clazz - * @return + * @return wikitty entity with specified id or {@code null} if entity can't be found */ public <E extends BusinessEntity> E restore(Class<E> clazz, String id, boolean checkExtension) { E result = null; @@ -120,11 +121,13 @@ } return result; } + /** - * - * @param clazz - * @param id - * @return + * Restore wikitty entity with specified id or {@code null} if entity can't be found. + * + * @param clazz entity class + * @param id entity id + * @return wikitty entity with specified id or {@code null} if entity can't be found */ public <E extends BusinessEntity> E restore(Class<E> clazz, String id) { E result = restore(clazz, id, false);