Database.html 9.3KB

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_144) on Fri Apr 27 10:24:20 EDT 2018 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>Database (people2)</title>
  8. <meta name="date" content="2018-04-27">
  9. <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
  10. <script type="text/javascript" src="script.js"></script>
  11. </head>
  12. <body>
  13. <script type="text/javascript"><!--
  14. try {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="Database (people2)";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":10,"i1":10};
  23. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  24. var altColor = "altColor";
  25. var rowColor = "rowColor";
  26. var tableTab = "tableTab";
  27. var activeTableTab = "activeTableTab";
  28. </script>
  29. <noscript>
  30. <div>JavaScript is disabled on your browser.</div>
  31. </noscript>
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <div class="topNav"><a name="navbar.top">
  34. <!-- -->
  35. </a>
  36. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  37. <a name="navbar.top.firstrow">
  38. <!-- -->
  39. </a>
  40. <ul class="navList" title="Navigation">
  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="index-all.html">Index</a></li>
  45. <li><a href="help-doc.html">Help</a></li>
  46. </ul>
  47. </div>
  48. <div class="subNav">
  49. <ul class="navList">
  50. <li><a href="Address.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  51. <li><a href="Person.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  52. </ul>
  53. <ul class="navList">
  54. <li><a href="index.html?Database.html" target="_top">Frames</a></li>
  55. <li><a href="Database.html" target="_top">No&nbsp;Frames</a></li>
  56. </ul>
  57. <ul class="navList" id="allclasses_navbar_top">
  58. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  59. </ul>
  60. <div>
  61. <script type="text/javascript"><!--
  62. allClassesLink = document.getElementById("allclasses_navbar_top");
  63. if(window==top) {
  64. allClassesLink.style.display = "block";
  65. }
  66. else {
  67. allClassesLink.style.display = "none";
  68. }
  69. //-->
  70. </script>
  71. </div>
  72. <div>
  73. <ul class="subNavList">
  74. <li>Summary:&nbsp;</li>
  75. <li>Nested&nbsp;|&nbsp;</li>
  76. <li>Field&nbsp;|&nbsp;</li>
  77. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#method.summary">Method</a></li>
  79. </ul>
  80. <ul class="subNavList">
  81. <li>Detail:&nbsp;</li>
  82. <li>Field&nbsp;|&nbsp;</li>
  83. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#method.detail">Method</a></li>
  85. </ul>
  86. </div>
  87. <a name="skip.navbar.top">
  88. <!-- -->
  89. </a></div>
  90. <!-- ========= END OF TOP NAVBAR ========= -->
  91. <!-- ======== START OF CLASS DATA ======== -->
  92. <div class="header">
  93. <h2 title="Class Database" class="title">Class Database</h2>
  94. </div>
  95. <div class="contentContainer">
  96. <ul class="inheritance">
  97. <li>java.lang.Object</li>
  98. <li>
  99. <ul class="inheritance">
  100. <li>Database</li>
  101. </ul>
  102. </li>
  103. </ul>
  104. <div class="description">
  105. <ul class="blockList">
  106. <li class="blockList">
  107. <hr>
  108. <br>
  109. <pre>public class <span class="typeNameLabel">Database</span>
  110. extends java.lang.Object</pre>
  111. <div class="block">A very simple database of people in a university. This class simply stores
  112. persons and, at request, lists them on standard output.
  113. Written as a first demo program for BlueJ.</div>
  114. <dl>
  115. <dt><span class="simpleTagLabel">Version:</span></dt>
  116. <dd>1.1, March 2002</dd>
  117. <dt><span class="simpleTagLabel">Author:</span></dt>
  118. <dd>Michael Kölling</dd>
  119. </dl>
  120. </li>
  121. </ul>
  122. </div>
  123. <div class="summary">
  124. <ul class="blockList">
  125. <li class="blockList">
  126. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  127. <ul class="blockList">
  128. <li class="blockList"><a name="constructor.summary">
  129. <!-- -->
  130. </a>
  131. <h3>Constructor Summary</h3>
  132. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  133. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  134. <tr>
  135. <th class="colOne" scope="col">Constructor and Description</th>
  136. </tr>
  137. <tr class="altColor">
  138. <td class="colOne"><code><span class="memberNameLink"><a href="Database.html#Database--">Database</a></span>()</code>
  139. <div class="block">Create a new, empty person database.</div>
  140. </td>
  141. </tr>
  142. </table>
  143. </li>
  144. </ul>
  145. <!-- ========== METHOD SUMMARY =========== -->
  146. <ul class="blockList">
  147. <li class="blockList"><a name="method.summary">
  148. <!-- -->
  149. </a>
  150. <h3>Method Summary</h3>
  151. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  152. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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>
  153. <tr>
  154. <th class="colFirst" scope="col">Modifier and Type</th>
  155. <th class="colLast" scope="col">Method and Description</th>
  156. </tr>
  157. <tr id="i0" class="altColor">
  158. <td class="colFirst"><code>void</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="Database.html#addPerson-Person-">addPerson</a></span>(<a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a>&nbsp;p)</code>
  160. <div class="block">Add a person to the database.</div>
  161. </td>
  162. </tr>
  163. <tr id="i1" class="rowColor">
  164. <td class="colFirst"><code>void</code></td>
  165. <td class="colLast"><code><span class="memberNameLink"><a href="Database.html#listAll--">listAll</a></span>()</code>
  166. <div class="block">List all the persons currently in the database on standard out.</div>
  167. </td>
  168. </tr>
  169. </table>
  170. <ul class="blockList">
  171. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  172. <!-- -->
  173. </a>
  174. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  175. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  176. </ul>
  177. </li>
  178. </ul>
  179. </li>
  180. </ul>
  181. </div>
  182. <div class="details">
  183. <ul class="blockList">
  184. <li class="blockList">
  185. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  186. <ul class="blockList">
  187. <li class="blockList"><a name="constructor.detail">
  188. <!-- -->
  189. </a>
  190. <h3>Constructor Detail</h3>
  191. <a name="Database--">
  192. <!-- -->
  193. </a>
  194. <ul class="blockListLast">
  195. <li class="blockList">
  196. <h4>Database</h4>
  197. <pre>public&nbsp;Database()</pre>
  198. <div class="block">Create a new, empty person database.</div>
  199. </li>
  200. </ul>
  201. </li>
  202. </ul>
  203. <!-- ============ METHOD DETAIL ========== -->
  204. <ul class="blockList">
  205. <li class="blockList"><a name="method.detail">
  206. <!-- -->
  207. </a>
  208. <h3>Method Detail</h3>
  209. <a name="addPerson-Person-">
  210. <!-- -->
  211. </a>
  212. <ul class="blockList">
  213. <li class="blockList">
  214. <h4>addPerson</h4>
  215. <pre>public&nbsp;void&nbsp;addPerson(<a href="Person.html" title="class in &lt;Unnamed&gt;">Person</a>&nbsp;p)</pre>
  216. <div class="block">Add a person to the database.</div>
  217. </li>
  218. </ul>
  219. <a name="listAll--">
  220. <!-- -->
  221. </a>
  222. <ul class="blockListLast">
  223. <li class="blockList">
  224. <h4>listAll</h4>
  225. <pre>public&nbsp;void&nbsp;listAll()</pre>
  226. <div class="block">List all the persons currently in the database on standard out.</div>
  227. </li>
  228. </ul>
  229. </li>
  230. </ul>
  231. </li>
  232. </ul>
  233. </div>
  234. </div>
  235. <!-- ========= END OF CLASS DATA ========= -->
  236. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  237. <div class="bottomNav"><a name="navbar.bottom">
  238. <!-- -->
  239. </a>
  240. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  241. <a name="navbar.bottom.firstrow">
  242. <!-- -->
  243. </a>
  244. <ul class="navList" title="Navigation">
  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="index-all.html">Index</a></li>
  249. <li><a href="help-doc.html">Help</a></li>
  250. </ul>
  251. </div>
  252. <div class="subNav">
  253. <ul class="navList">
  254. <li><a href="Address.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  255. <li><a href="Person.html" title="class in &lt;Unnamed&gt;"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  256. </ul>
  257. <ul class="navList">
  258. <li><a href="index.html?Database.html" target="_top">Frames</a></li>
  259. <li><a href="Database.html" target="_top">No&nbsp;Frames</a></li>
  260. </ul>
  261. <ul class="navList" id="allclasses_navbar_bottom">
  262. <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li>
  263. </ul>
  264. <div>
  265. <script type="text/javascript"><!--
  266. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  267. if(window==top) {
  268. allClassesLink.style.display = "block";
  269. }
  270. else {
  271. allClassesLink.style.display = "none";
  272. }
  273. //-->
  274. </script>
  275. </div>
  276. <div>
  277. <ul class="subNavList">
  278. <li>Summary:&nbsp;</li>
  279. <li>Nested&nbsp;|&nbsp;</li>
  280. <li>Field&nbsp;|&nbsp;</li>
  281. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  282. <li><a href="#method.summary">Method</a></li>
  283. </ul>
  284. <ul class="subNavList">
  285. <li>Detail:&nbsp;</li>
  286. <li>Field&nbsp;|&nbsp;</li>
  287. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  288. <li><a href="#method.detail">Method</a></li>
  289. </ul>
  290. </div>
  291. <a name="skip.navbar.bottom">
  292. <!-- -->
  293. </a></div>
  294. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  295. </body>
  296. </html>