PersonFactory.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_131) on Sat May 27 07:28:13 EDT 2017 -->
  6. <title>PersonFactory</title>
  7. <meta name="date" content="2017-05-27">
  8. <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="PersonFactory";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":9,"i1":9,"i2":9,"i3":9};
  22. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  45. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  46. <li><a href="../../../../help-doc.html">Help</a></li>
  47. </ul>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li><a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.PersonProperty.html" title="class in com.zipcodewilmington.streams.anthropoid"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../../com/zipcodewilmington/streams/anthropoid/TestPerson.html" title="class in com.zipcodewilmington.streams.anthropoid"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../../index.html?com/zipcodewilmington/streams/anthropoid/PersonFactory.html" target="_top">Frames</a></li>
  56. <li><a href="PersonFactory.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li>Nested&nbsp;|&nbsp;</li>
  77. <li>Field&nbsp;|&nbsp;</li>
  78. <li>Constr&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li>Field&nbsp;|&nbsp;</li>
  84. <li>Constr&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">com.zipcodewilmington.streams.anthropoid</div>
  95. <h2 title="Class PersonFactory" class="title">Class PersonFactory</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li>java.lang.Object</li>
  100. <li>
  101. <ul class="inheritance">
  102. <li>com.zipcodewilmington.streams.anthropoid.PersonFactory</li>
  103. </ul>
  104. </li>
  105. </ul>
  106. <div class="description">
  107. <ul class="blockList">
  108. <li class="blockList">
  109. <hr>
  110. <br>
  111. <pre>public final class <span class="typeNameLabel">PersonFactory</span>
  112. extends java.lang.Object</pre>
  113. <div class="block">Created by leon on 5/1/17.</div>
  114. </li>
  115. </ul>
  116. </div>
  117. <div class="summary">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <!-- ========== METHOD SUMMARY =========== -->
  121. <ul class="blockList">
  122. <li class="blockList"><a name="method.summary">
  123. <!-- -->
  124. </a>
  125. <h3>Method Summary</h3>
  126. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  127. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  128. <tr>
  129. <th class="colFirst" scope="col">Modifier and Type</th>
  130. <th class="colLast" scope="col">Method and Description</th>
  131. </tr>
  132. <tr id="i0" class="altColor">
  133. <td class="colFirst"><code>static <a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>[]</code></td>
  134. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/zipcodewilmington/streams/anthropoid/PersonFactory.html#createPersonArray-int-">createPersonArray</a></span>(int&nbsp;personCount)</code>&nbsp;</td>
  135. </tr>
  136. <tr id="i1" class="rowColor">
  137. <td class="colFirst"><code>static java.util.List&lt;<a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>&gt;</code></td>
  138. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/zipcodewilmington/streams/anthropoid/PersonFactory.html#createPersonList-int-">createPersonList</a></span>(int&nbsp;personCount)</code>&nbsp;</td>
  139. </tr>
  140. <tr id="i2" class="altColor">
  141. <td class="colFirst"><code>static java.util.stream.Stream&lt;<a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>&gt;</code></td>
  142. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/zipcodewilmington/streams/anthropoid/PersonFactory.html#createPersonStream-int-">createPersonStream</a></span>(int&nbsp;personCount)</code>&nbsp;</td>
  143. </tr>
  144. <tr id="i3" class="rowColor">
  145. <td class="colFirst"><code>static <a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a></code></td>
  146. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/zipcodewilmington/streams/anthropoid/PersonFactory.html#createRandomPerson--">createRandomPerson</a></span>()</code>&nbsp;</td>
  147. </tr>
  148. </table>
  149. <ul class="blockList">
  150. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  151. <!-- -->
  152. </a>
  153. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  154. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  155. </ul>
  156. </li>
  157. </ul>
  158. </li>
  159. </ul>
  160. </div>
  161. <div class="details">
  162. <ul class="blockList">
  163. <li class="blockList">
  164. <!-- ============ METHOD DETAIL ========== -->
  165. <ul class="blockList">
  166. <li class="blockList"><a name="method.detail">
  167. <!-- -->
  168. </a>
  169. <h3>Method Detail</h3>
  170. <a name="createRandomPerson--">
  171. <!-- -->
  172. </a>
  173. <ul class="blockList">
  174. <li class="blockList">
  175. <h4>createRandomPerson</h4>
  176. <pre>public static&nbsp;<a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>&nbsp;createRandomPerson()</pre>
  177. <dl>
  178. <dt><span class="returnLabel">Returns:</span></dt>
  179. <dd>a new instance of a person with fields of random values</dd>
  180. </dl>
  181. </li>
  182. </ul>
  183. <a name="createPersonList-int-">
  184. <!-- -->
  185. </a>
  186. <ul class="blockList">
  187. <li class="blockList">
  188. <h4>createPersonList</h4>
  189. <pre>public static&nbsp;java.util.List&lt;<a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>&gt;&nbsp;createPersonList(int&nbsp;personCount)</pre>
  190. <dl>
  191. <dt><span class="paramLabel">Parameters:</span></dt>
  192. <dd><code>personCount</code> - - number of Person objects to create</dd>
  193. <dt><span class="returnLabel">Returns:</span></dt>
  194. <dd>- ArrayList of Person objects</dd>
  195. </dl>
  196. </li>
  197. </ul>
  198. <a name="createPersonArray-int-">
  199. <!-- -->
  200. </a>
  201. <ul class="blockList">
  202. <li class="blockList">
  203. <h4>createPersonArray</h4>
  204. <pre>public static&nbsp;<a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>[]&nbsp;createPersonArray(int&nbsp;personCount)</pre>
  205. <dl>
  206. <dt><span class="paramLabel">Parameters:</span></dt>
  207. <dd><code>personCount</code> - - number of Person objects to create</dd>
  208. <dt><span class="returnLabel">Returns:</span></dt>
  209. <dd>- Array of Person objects</dd>
  210. </dl>
  211. </li>
  212. </ul>
  213. <a name="createPersonStream-int-">
  214. <!-- -->
  215. </a>
  216. <ul class="blockListLast">
  217. <li class="blockList">
  218. <h4>createPersonStream</h4>
  219. <pre>public static&nbsp;java.util.stream.Stream&lt;<a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.html" title="class in com.zipcodewilmington.streams.anthropoid">Person</a>&gt;&nbsp;createPersonStream(int&nbsp;personCount)</pre>
  220. <dl>
  221. <dt><span class="paramLabel">Parameters:</span></dt>
  222. <dd><code>personCount</code> - - number of Person objects to create</dd>
  223. <dt><span class="returnLabel">Returns:</span></dt>
  224. <dd>- Stream representation of collection of Person objects</dd>
  225. </dl>
  226. </li>
  227. </ul>
  228. </li>
  229. </ul>
  230. </li>
  231. </ul>
  232. </div>
  233. </div>
  234. <!-- ========= END OF CLASS DATA ========= -->
  235. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  236. <div class="bottomNav"><a name="navbar.bottom">
  237. <!-- -->
  238. </a>
  239. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  240. <a name="navbar.bottom.firstrow">
  241. <!-- -->
  242. </a>
  243. <ul class="navList" title="Navigation">
  244. <li><a href="../../../../overview-summary.html">Overview</a></li>
  245. <li><a href="package-summary.html">Package</a></li>
  246. <li class="navBarCell1Rev">Class</li>
  247. <li><a href="package-tree.html">Tree</a></li>
  248. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  249. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  250. <li><a href="../../../../help-doc.html">Help</a></li>
  251. </ul>
  252. </div>
  253. <div class="subNav">
  254. <ul class="navList">
  255. <li><a href="../../../../com/zipcodewilmington/streams/anthropoid/Person.PersonProperty.html" title="class in com.zipcodewilmington.streams.anthropoid"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  256. <li><a href="../../../../com/zipcodewilmington/streams/anthropoid/TestPerson.html" title="class in com.zipcodewilmington.streams.anthropoid"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  257. </ul>
  258. <ul class="navList">
  259. <li><a href="../../../../index.html?com/zipcodewilmington/streams/anthropoid/PersonFactory.html" target="_top">Frames</a></li>
  260. <li><a href="PersonFactory.html" target="_top">No&nbsp;Frames</a></li>
  261. </ul>
  262. <ul class="navList" id="allclasses_navbar_bottom">
  263. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  264. </ul>
  265. <div>
  266. <script type="text/javascript"><!--
  267. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  268. if(window==top) {
  269. allClassesLink.style.display = "block";
  270. }
  271. else {
  272. allClassesLink.style.display = "none";
  273. }
  274. //-->
  275. </script>
  276. </div>
  277. <div>
  278. <ul class="subNavList">
  279. <li>Summary:&nbsp;</li>
  280. <li>Nested&nbsp;|&nbsp;</li>
  281. <li>Field&nbsp;|&nbsp;</li>
  282. <li>Constr&nbsp;|&nbsp;</li>
  283. <li><a href="#method.summary">Method</a></li>
  284. </ul>
  285. <ul class="subNavList">
  286. <li>Detail:&nbsp;</li>
  287. <li>Field&nbsp;|&nbsp;</li>
  288. <li>Constr&nbsp;|&nbsp;</li>
  289. <li><a href="#method.detail">Method</a></li>
  290. </ul>
  291. </div>
  292. <a name="skip.navbar.bottom">
  293. <!-- -->
  294. </a></div>
  295. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  296. </body>
  297. </html>