/Prototipo/Servlet/lib/xstream-distribution-1.4.1-bin/xstream-1.4.1/docs/javadoc/com/thoughtworks/xstream/core/util/Pool.html

http://prototipomemoria.googlecode.com/ · HTML · 301 lines · 244 code · 34 blank · 23 comment · 0 complexity · 4995f7dca3bf7d5fca36eceaed6b0604 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_26) on Thu Aug 11 04:40:18 CEST 2011 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. Pool (XStream Core 1.4.1 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2011-08-11">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="Pool (XStream Core 1.4.1 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Pool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/core/util/OrderRetainingMap.html" title="class in com.thoughtworks.xstream.core.util"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.Factory.html" title="interface in com.thoughtworks.xstream.core.util"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../../index.html?com/thoughtworks/xstream/core/util/Pool.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="Pool.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. com.thoughtworks.xstream.core.util</FONT>
  82. <BR>
  83. Class Pool</H2>
  84. <PRE>
  85. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  86. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.thoughtworks.xstream.core.util.Pool</B>
  87. </PRE>
  88. <HR>
  89. <DL>
  90. <DT><PRE>public class <B>Pool</B><DT>extends <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
  91. </PRE>
  92. <P>
  93. A simple pool implementation.
  94. <P>
  95. <P>
  96. <DL>
  97. <DT><B>Author:</B></DT>
  98. <DD>J&ouml;rg Schaible, Joe Walnes</DD>
  99. </DL>
  100. <HR>
  101. <P>
  102. <!-- ======== NESTED CLASS SUMMARY ======== -->
  103. <A NAME="nested_class_summary"><!-- --></A>
  104. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  105. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  106. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  107. <B>Nested Class Summary</B></FONT></TH>
  108. </TR>
  109. <TR BGCOLOR="white" CLASS="TableRowColor">
  110. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  111. <CODE>static&nbsp;interface</CODE></FONT></TD>
  112. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.Factory.html" title="interface in com.thoughtworks.xstream.core.util">Pool.Factory</A></B></CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  115. </TR>
  116. </TABLE>
  117. &nbsp;
  118. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  119. <A NAME="constructor_summary"><!-- --></A>
  120. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  121. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  122. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  123. <B>Constructor Summary</B></FONT></TH>
  124. </TR>
  125. <TR BGCOLOR="white" CLASS="TableRowColor">
  126. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.html#Pool(int, int, com.thoughtworks.xstream.core.util.Pool.Factory)">Pool</A></B>(int&nbsp;initialPoolSize,
  127. int&nbsp;maxPoolSize,
  128. <A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.Factory.html" title="interface in com.thoughtworks.xstream.core.util">Pool.Factory</A>&nbsp;factory)</CODE>
  129. <BR>
  130. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  131. </TR>
  132. </TABLE>
  133. &nbsp;
  134. <!-- ========== METHOD SUMMARY =========== -->
  135. <A NAME="method_summary"><!-- --></A>
  136. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  137. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  138. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  139. <B>Method Summary</B></FONT></TH>
  140. </TR>
  141. <TR BGCOLOR="white" CLASS="TableRowColor">
  142. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  143. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
  144. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.html#fetchFromPool()">fetchFromPool</A></B>()</CODE>
  145. <BR>
  146. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  147. </TR>
  148. <TR BGCOLOR="white" CLASS="TableRowColor">
  149. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  150. <CODE>protected &nbsp;void</CODE></FONT></TD>
  151. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.html#putInPool(java.lang.Object)">putInPool</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;object)</CODE>
  152. <BR>
  153. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  154. </TR>
  155. </TABLE>
  156. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  157. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  158. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  159. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  160. </TR>
  161. <TR BGCOLOR="white" CLASS="TableRowColor">
  162. <TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  163. </TR>
  164. </TABLE>
  165. &nbsp;
  166. <P>
  167. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  168. <A NAME="constructor_detail"><!-- --></A>
  169. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  170. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  171. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  172. <B>Constructor Detail</B></FONT></TH>
  173. </TR>
  174. </TABLE>
  175. <A NAME="Pool(int, int, com.thoughtworks.xstream.core.util.Pool.Factory)"><!-- --></A><H3>
  176. Pool</H3>
  177. <PRE>
  178. public <B>Pool</B>(int&nbsp;initialPoolSize,
  179. int&nbsp;maxPoolSize,
  180. <A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.Factory.html" title="interface in com.thoughtworks.xstream.core.util">Pool.Factory</A>&nbsp;factory)</PRE>
  181. <DL>
  182. </DL>
  183. <!-- ============ METHOD DETAIL ========== -->
  184. <A NAME="method_detail"><!-- --></A>
  185. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  186. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  187. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  188. <B>Method Detail</B></FONT></TH>
  189. </TR>
  190. </TABLE>
  191. <A NAME="fetchFromPool()"><!-- --></A><H3>
  192. fetchFromPool</H3>
  193. <PRE>
  194. public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>fetchFromPool</B>()</PRE>
  195. <DL>
  196. <DD><DL>
  197. </DL>
  198. </DD>
  199. </DL>
  200. <HR>
  201. <A NAME="putInPool(java.lang.Object)"><!-- --></A><H3>
  202. putInPool</H3>
  203. <PRE>
  204. protected void <B>putInPool</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;object)</PRE>
  205. <DL>
  206. <DD><DL>
  207. </DL>
  208. </DD>
  209. </DL>
  210. <!-- ========= END OF CLASS DATA ========= -->
  211. <HR>
  212. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  213. <A NAME="navbar_bottom"><!-- --></A>
  214. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  215. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  216. <TR>
  217. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  218. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  219. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  220. <TR ALIGN="center" VALIGN="top">
  221. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  222. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  223. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  224. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Pool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  225. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  226. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  227. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  228. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  229. </TR>
  230. </TABLE>
  231. </TD>
  232. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  233. </EM>
  234. </TD>
  235. </TR>
  236. <TR>
  237. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  238. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/core/util/OrderRetainingMap.html" title="class in com.thoughtworks.xstream.core.util"><B>PREV CLASS</B></A>&nbsp;
  239. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/core/util/Pool.Factory.html" title="interface in com.thoughtworks.xstream.core.util"><B>NEXT CLASS</B></A></FONT></TD>
  240. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  241. <A HREF="../../../../../index.html?com/thoughtworks/xstream/core/util/Pool.html" target="_top"><B>FRAMES</B></A> &nbsp;
  242. &nbsp;<A HREF="Pool.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  243. &nbsp;<SCRIPT type="text/javascript">
  244. <!--
  245. if(window==top) {
  246. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  247. }
  248. //-->
  249. </SCRIPT>
  250. <NOSCRIPT>
  251. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  252. </NOSCRIPT>
  253. </FONT></TD>
  254. </TR>
  255. <TR>
  256. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  257. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  258. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  259. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  260. </TR>
  261. </TABLE>
  262. <A NAME="skip-navbar_bottom"></A>
  263. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  264. <HR>
  265. Copyright &#169; 2004-2011 <a href="http://xstream.codehaus.org">XStream</a>. All Rights Reserved.
  266. </BODY>
  267. </HTML>