mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
implemented #210.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1405 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
88106b4581
commit
513a1249cf
8 files changed
+57
-6
No files matched your search
@@ -21,9 +21,23 @@ import java.io.File;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* Utility functions used in views.
|
||||
*
|
||||
* <p>
|
||||
* An instance of this class is created for each request.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class Functions {
|
||||
private int iota=0;
|
||||
|
||||
/**
|
||||
* Generates an unique ID.
|
||||
*/
|
||||
public String generateId() {
|
||||
return "id"+iota++;
|
||||
}
|
||||
|
||||
public static boolean isModel(Object o) {
|
||||
return o instanceof ModelObject;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user