Parent Directory | Revision Log | Patch
revision 3234 by torben, Fri Mar 20 13:42:28 2015 UTC | revision 3235 by torben, Thu May 17 06:30:07 2018 UTC | |
---|---|---|
# | Line 32 public class ResultBuffer { | Line 32 public class ResultBuffer { |
32 | ||
33 | } | } |
34 | ||
35 | // Singleton | |
36 | ||
private static ResultBuffer singleton = null; | ||
37 | private ResultBuffer() {} //Private constructor | private ResultBuffer() {} //Private constructor |
38 | ||
39 | private static ResultBuffer singleton = new ResultBuffer(); | |
40 | ||
41 | public static ResultBuffer getResultBuffer() { | public static ResultBuffer getResultBuffer() { |
if (singleton == null) { | ||
singleton = new ResultBuffer(); | ||
singleton.clear(); | ||
} | ||
42 | ||
43 | return singleton; | return singleton; |
44 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |