Hour.html 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  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_05) on Thu Jul 31 14:50:43 CEST 2014 -->
  6. <title>Hour (JFreeChart Class Library (version 1.0.19-fx))</title>
  7. <meta name="date" content="2014-07-31">
  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="Hour (JFreeChart Class Library (version 1.0.19-fx))";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":9,"i15":10,"i16":10,"i17":10};
  22. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance 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="class-use/Hour.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  47. <li><a href="../../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../../../org/jfree/data/time/FixedMillisecond.html" title="class in org.jfree.data.time"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../org/jfree/data/time/Millisecond.html" title="class in org.jfree.data.time"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../index.html?org/jfree/data/time/Hour.html" target="_top">Frames</a></li>
  57. <li><a href="Hour.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.jfree.data.time</div>
  96. <h2 title="Class Hour" class="title">Class Hour</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li>java.lang.Object</li>
  101. <li>
  102. <ul class="inheritance">
  103. <li><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">org.jfree.data.time.RegularTimePeriod</a></li>
  104. <li>
  105. <ul class="inheritance">
  106. <li>org.jfree.data.time.Hour</li>
  107. </ul>
  108. </li>
  109. </ul>
  110. </li>
  111. </ul>
  112. <div class="description">
  113. <ul class="blockList">
  114. <li class="blockList">
  115. <dl>
  116. <dt>All Implemented Interfaces:</dt>
  117. <dd>java.io.Serializable, java.lang.Comparable, <a href="../../../../org/jfree/data/time/TimePeriod.html" title="interface in org.jfree.data.time">TimePeriod</a>, org.jfree.date.MonthConstants</dd>
  118. </dl>
  119. <hr>
  120. <br>
  121. <pre>public class <a href="../../../../src-html/org/jfree/data/time/Hour.html#line.80">Hour</a>
  122. extends <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>
  123. implements java.io.Serializable</pre>
  124. <div class="block">Represents an hour in a specific day. This class is immutable, which is a
  125. requirement for all <a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time"><code>RegularTimePeriod</code></a> subclasses.</div>
  126. <dl>
  127. <dt><span class="seeLabel">See Also:</span></dt>
  128. <dd><a href="../../../../serialized-form.html#org.jfree.data.time.Hour">Serialized Form</a></dd>
  129. </dl>
  130. </li>
  131. </ul>
  132. </div>
  133. <div class="summary">
  134. <ul class="blockList">
  135. <li class="blockList">
  136. <!-- =========== FIELD SUMMARY =========== -->
  137. <ul class="blockList">
  138. <li class="blockList"><a name="field.summary">
  139. <!-- -->
  140. </a>
  141. <h3>Field Summary</h3>
  142. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  143. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  144. <tr>
  145. <th class="colFirst" scope="col">Modifier and Type</th>
  146. <th class="colLast" scope="col">Field and Description</th>
  147. </tr>
  148. <tr class="altColor">
  149. <td class="colFirst"><code>static int</code></td>
  150. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#FIRST_HOUR_IN_DAY">FIRST_HOUR_IN_DAY</a></span></code>
  151. <div class="block">Useful constant for the first hour in the day.</div>
  152. </td>
  153. </tr>
  154. <tr class="rowColor">
  155. <td class="colFirst"><code>static int</code></td>
  156. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#LAST_HOUR_IN_DAY">LAST_HOUR_IN_DAY</a></span></code>
  157. <div class="block">Useful constant for the last hour in the day.</div>
  158. </td>
  159. </tr>
  160. </table>
  161. <ul class="blockList">
  162. <li class="blockList"><a name="fields.inherited.from.class.org.jfree.data.time.RegularTimePeriod">
  163. <!-- -->
  164. </a>
  165. <h3>Fields inherited from class&nbsp;org.jfree.data.time.<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></h3>
  166. <code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#DEFAULT_TIME_ZONE">DEFAULT_TIME_ZONE</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#WORKING_CALENDAR">WORKING_CALENDAR</a></code></li>
  167. </ul>
  168. <ul class="blockList">
  169. <li class="blockList"><a name="fields.inherited.from.class.org.jfree.date.MonthConstants">
  170. <!-- -->
  171. </a>
  172. <h3>Fields inherited from interface&nbsp;org.jfree.date.MonthConstants</h3>
  173. <code>APRIL, AUGUST, DECEMBER, FEBRUARY, JANUARY, JULY, JUNE, MARCH, MAY, NOVEMBER, OCTOBER, SEPTEMBER</code></li>
  174. </ul>
  175. </li>
  176. </ul>
  177. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  178. <ul class="blockList">
  179. <li class="blockList"><a name="constructor.summary">
  180. <!-- -->
  181. </a>
  182. <h3>Constructor Summary</h3>
  183. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  184. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  185. <tr>
  186. <th class="colOne" scope="col">Constructor and Description</th>
  187. </tr>
  188. <tr class="altColor">
  189. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#Hour--">Hour</a></span>()</code>
  190. <div class="block">Constructs a new Hour, based on the system date/time.</div>
  191. </td>
  192. </tr>
  193. <tr class="rowColor">
  194. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#Hour-java.util.Date-">Hour</a></span>(java.util.Date&nbsp;time)</code>
  195. <div class="block">Constructs a new instance, based on the supplied date/time and
  196. the default time zone.</div>
  197. </td>
  198. </tr>
  199. <tr class="altColor">
  200. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#Hour-java.util.Date-java.util.TimeZone-">Hour</a></span>(java.util.Date&nbsp;time,
  201. java.util.TimeZone&nbsp;zone)</code>
  202. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  203. <div class="block"><span class="deprecationComment">As of 1.0.13, use the constructor that specifies the locale
  204. also.</span></div>
  205. </div>
  206. </td>
  207. </tr>
  208. <tr class="rowColor">
  209. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#Hour-java.util.Date-java.util.TimeZone-java.util.Locale-">Hour</a></span>(java.util.Date&nbsp;time,
  210. java.util.TimeZone&nbsp;zone,
  211. java.util.Locale&nbsp;locale)</code>
  212. <div class="block">Constructs a new instance, based on the supplied date/time evaluated
  213. in the specified time zone.</div>
  214. </td>
  215. </tr>
  216. <tr class="altColor">
  217. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#Hour-int-org.jfree.data.time.Day-">Hour</a></span>(int&nbsp;hour,
  218. <a href="../../../../org/jfree/data/time/Day.html" title="class in org.jfree.data.time">Day</a>&nbsp;day)</code>
  219. <div class="block">Constructs a new Hour.</div>
  220. </td>
  221. </tr>
  222. <tr class="rowColor">
  223. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#Hour-int-int-int-int-">Hour</a></span>(int&nbsp;hour,
  224. int&nbsp;day,
  225. int&nbsp;month,
  226. int&nbsp;year)</code>
  227. <div class="block">Creates a new hour.</div>
  228. </td>
  229. </tr>
  230. </table>
  231. </li>
  232. </ul>
  233. <!-- ========== METHOD SUMMARY =========== -->
  234. <ul class="blockList">
  235. <li class="blockList"><a name="method.summary">
  236. <!-- -->
  237. </a>
  238. <h3>Method Summary</h3>
  239. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  240. <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="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>
  241. <tr>
  242. <th class="colFirst" scope="col">Modifier and Type</th>
  243. <th class="colLast" scope="col">Method and Description</th>
  244. </tr>
  245. <tr id="i0" class="altColor">
  246. <td class="colFirst"><code>int</code></td>
  247. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#compareTo-java.lang.Object-">compareTo</a></span>(java.lang.Object&nbsp;o1)</code>
  248. <div class="block">Returns an integer indicating the order of this Hour object relative to
  249. the specified object:
  250. negative == before, zero == same, positive == after.</div>
  251. </td>
  252. </tr>
  253. <tr id="i1" class="rowColor">
  254. <td class="colFirst"><code>boolean</code></td>
  255. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#equals-java.lang.Object-">equals</a></span>(java.lang.Object&nbsp;obj)</code>
  256. <div class="block">Tests the equality of this object against an arbitrary Object.</div>
  257. </td>
  258. </tr>
  259. <tr id="i2" class="altColor">
  260. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/Day.html" title="class in org.jfree.data.time">Day</a></code></td>
  261. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getDay--">getDay</a></span>()</code>
  262. <div class="block">Returns the day in which this hour falls.</div>
  263. </td>
  264. </tr>
  265. <tr id="i3" class="rowColor">
  266. <td class="colFirst"><code>int</code></td>
  267. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getDayOfMonth--">getDayOfMonth</a></span>()</code>
  268. <div class="block">Returns the day-of-the-month in which this hour falls.</div>
  269. </td>
  270. </tr>
  271. <tr id="i4" class="altColor">
  272. <td class="colFirst"><code>long</code></td>
  273. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getFirstMillisecond--">getFirstMillisecond</a></span>()</code>
  274. <div class="block">Returns the first millisecond of the hour.</div>
  275. </td>
  276. </tr>
  277. <tr id="i5" class="rowColor">
  278. <td class="colFirst"><code>long</code></td>
  279. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getFirstMillisecond-java.util.Calendar-">getFirstMillisecond</a></span>(java.util.Calendar&nbsp;calendar)</code>
  280. <div class="block">Returns the first millisecond of the hour.</div>
  281. </td>
  282. </tr>
  283. <tr id="i6" class="altColor">
  284. <td class="colFirst"><code>int</code></td>
  285. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getHour--">getHour</a></span>()</code>
  286. <div class="block">Returns the hour.</div>
  287. </td>
  288. </tr>
  289. <tr id="i7" class="rowColor">
  290. <td class="colFirst"><code>long</code></td>
  291. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getLastMillisecond--">getLastMillisecond</a></span>()</code>
  292. <div class="block">Returns the last millisecond of the hour.</div>
  293. </td>
  294. </tr>
  295. <tr id="i8" class="altColor">
  296. <td class="colFirst"><code>long</code></td>
  297. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getLastMillisecond-java.util.Calendar-">getLastMillisecond</a></span>(java.util.Calendar&nbsp;calendar)</code>
  298. <div class="block">Returns the last millisecond of the hour.</div>
  299. </td>
  300. </tr>
  301. <tr id="i9" class="rowColor">
  302. <td class="colFirst"><code>int</code></td>
  303. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getMonth--">getMonth</a></span>()</code>
  304. <div class="block">Returns the month in which this hour falls.</div>
  305. </td>
  306. </tr>
  307. <tr id="i10" class="altColor">
  308. <td class="colFirst"><code>long</code></td>
  309. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getSerialIndex--">getSerialIndex</a></span>()</code>
  310. <div class="block">Returns a serial index number for the hour.</div>
  311. </td>
  312. </tr>
  313. <tr id="i11" class="rowColor">
  314. <td class="colFirst"><code>int</code></td>
  315. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#getYear--">getYear</a></span>()</code>
  316. <div class="block">Returns the year in which this hour falls.</div>
  317. </td>
  318. </tr>
  319. <tr id="i12" class="altColor">
  320. <td class="colFirst"><code>int</code></td>
  321. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#hashCode--">hashCode</a></span>()</code>
  322. <div class="block">Returns a hash code for this object instance.</div>
  323. </td>
  324. </tr>
  325. <tr id="i13" class="rowColor">
  326. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
  327. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#next--">next</a></span>()</code>
  328. <div class="block">Returns the hour following this one.</div>
  329. </td>
  330. </tr>
  331. <tr id="i14" class="altColor">
  332. <td class="colFirst"><code>static <a href="../../../../org/jfree/data/time/Hour.html" title="class in org.jfree.data.time">Hour</a></code></td>
  333. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#parseHour-java.lang.String-">parseHour</a></span>(java.lang.String&nbsp;s)</code>
  334. <div class="block">Creates an Hour instance by parsing a string.</div>
  335. </td>
  336. </tr>
  337. <tr id="i15" class="rowColor">
  338. <td class="colFirst"><code>void</code></td>
  339. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#peg-java.util.Calendar-">peg</a></span>(java.util.Calendar&nbsp;calendar)</code>
  340. <div class="block">Recalculates the start date/time and end date/time for this time period
  341. relative to the supplied calendar (which incorporates a time zone).</div>
  342. </td>
  343. </tr>
  344. <tr id="i16" class="altColor">
  345. <td class="colFirst"><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></td>
  346. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#previous--">previous</a></span>()</code>
  347. <div class="block">Returns the hour preceding this one.</div>
  348. </td>
  349. </tr>
  350. <tr id="i17" class="rowColor">
  351. <td class="colFirst"><code>java.lang.String</code></td>
  352. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/jfree/data/time/Hour.html#toString--">toString</a></span>()</code>
  353. <div class="block">Returns a string representation of this instance, for debugging
  354. purposes.</div>
  355. </td>
  356. </tr>
  357. </table>
  358. <ul class="blockList">
  359. <li class="blockList"><a name="methods.inherited.from.class.org.jfree.data.time.RegularTimePeriod">
  360. <!-- -->
  361. </a>
  362. <h3>Methods inherited from class&nbsp;org.jfree.data.time.<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></h3>
  363. <code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#createInstance-java.lang.Class-java.util.Date-java.util.TimeZone-">createInstance</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#downsize-java.lang.Class-">downsize</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getEnd--">getEnd</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.TimeZone-">getFirstMillisecond</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.TimeZone-">getLastMillisecond</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond--">getMiddleMillisecond</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond-java.util.Calendar-">getMiddleMillisecond</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMiddleMillisecond-java.util.TimeZone-">getMiddleMillisecond</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getMillisecond-org.jfree.data.time.TimePeriodAnchor-java.util.Calendar-">getMillisecond</a>, <a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getStart--">getStart</a></code></li>
  364. </ul>
  365. <ul class="blockList">
  366. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  367. <!-- -->
  368. </a>
  369. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  370. <code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
  371. </ul>
  372. </li>
  373. </ul>
  374. </li>
  375. </ul>
  376. </div>
  377. <div class="details">
  378. <ul class="blockList">
  379. <li class="blockList">
  380. <!-- ============ FIELD DETAIL =========== -->
  381. <ul class="blockList">
  382. <li class="blockList"><a name="field.detail">
  383. <!-- -->
  384. </a>
  385. <h3>Field Detail</h3>
  386. <a name="FIRST_HOUR_IN_DAY">
  387. <!-- -->
  388. </a>
  389. <ul class="blockList">
  390. <li class="blockList">
  391. <h4>FIRST_HOUR_IN_DAY</h4>
  392. <pre>public static final&nbsp;int <a href="../../../../src-html/org/jfree/data/time/Hour.html#line.86">FIRST_HOUR_IN_DAY</a></pre>
  393. <div class="block">Useful constant for the first hour in the day.</div>
  394. <dl>
  395. <dt><span class="seeLabel">See Also:</span></dt>
  396. <dd><a href="../../../../constant-values.html#org.jfree.data.time.Hour.FIRST_HOUR_IN_DAY">Constant Field Values</a></dd>
  397. </dl>
  398. </li>
  399. </ul>
  400. <a name="LAST_HOUR_IN_DAY">
  401. <!-- -->
  402. </a>
  403. <ul class="blockListLast">
  404. <li class="blockList">
  405. <h4>LAST_HOUR_IN_DAY</h4>
  406. <pre>public static final&nbsp;int <a href="../../../../src-html/org/jfree/data/time/Hour.html#line.89">LAST_HOUR_IN_DAY</a></pre>
  407. <div class="block">Useful constant for the last hour in the day.</div>
  408. <dl>
  409. <dt><span class="seeLabel">See Also:</span></dt>
  410. <dd><a href="../../../../constant-values.html#org.jfree.data.time.Hour.LAST_HOUR_IN_DAY">Constant Field Values</a></dd>
  411. </dl>
  412. </li>
  413. </ul>
  414. </li>
  415. </ul>
  416. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  417. <ul class="blockList">
  418. <li class="blockList"><a name="constructor.detail">
  419. <!-- -->
  420. </a>
  421. <h3>Constructor Detail</h3>
  422. <a name="Hour--">
  423. <!-- -->
  424. </a>
  425. <ul class="blockList">
  426. <li class="blockList">
  427. <h4>Hour</h4>
  428. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.106">Hour</a>()</pre>
  429. <div class="block">Constructs a new Hour, based on the system date/time.</div>
  430. </li>
  431. </ul>
  432. <a name="Hour-int-org.jfree.data.time.Day-">
  433. <!-- -->
  434. </a>
  435. <ul class="blockList">
  436. <li class="blockList">
  437. <h4>Hour</h4>
  438. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.116">Hour</a>(int&nbsp;hour,
  439. <a href="../../../../org/jfree/data/time/Day.html" title="class in org.jfree.data.time">Day</a>&nbsp;day)</pre>
  440. <div class="block">Constructs a new Hour.</div>
  441. <dl>
  442. <dt><span class="paramLabel">Parameters:</span></dt>
  443. <dd><code>hour</code> - the hour (in the range 0 to 23).</dd>
  444. <dd><code>day</code> - the day (<code>null</code> not permitted).</dd>
  445. </dl>
  446. </li>
  447. </ul>
  448. <a name="Hour-int-int-int-int-">
  449. <!-- -->
  450. </a>
  451. <ul class="blockList">
  452. <li class="blockList">
  453. <h4>Hour</h4>
  454. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.131">Hour</a>(int&nbsp;hour,
  455. int&nbsp;day,
  456. int&nbsp;month,
  457. int&nbsp;year)</pre>
  458. <div class="block">Creates a new hour.</div>
  459. <dl>
  460. <dt><span class="paramLabel">Parameters:</span></dt>
  461. <dd><code>hour</code> - the hour (0-23).</dd>
  462. <dd><code>day</code> - the day (1-31).</dd>
  463. <dd><code>month</code> - the month (1-12).</dd>
  464. <dd><code>year</code> - the year (1900-9999).</dd>
  465. </dl>
  466. </li>
  467. </ul>
  468. <a name="Hour-java.util.Date-">
  469. <!-- -->
  470. </a>
  471. <ul class="blockList">
  472. <li class="blockList">
  473. <h4>Hour</h4>
  474. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.143">Hour</a>(java.util.Date&nbsp;time)</pre>
  475. <div class="block">Constructs a new instance, based on the supplied date/time and
  476. the default time zone.</div>
  477. <dl>
  478. <dt><span class="paramLabel">Parameters:</span></dt>
  479. <dd><code>time</code> - the date-time (<code>null</code> not permitted).</dd>
  480. <dt><span class="seeLabel">See Also:</span></dt>
  481. <dd><a href="../../../../org/jfree/data/time/Hour.html#Hour-java.util.Date-java.util.TimeZone-"><code>Hour(Date, TimeZone)</code></a></dd>
  482. </dl>
  483. </li>
  484. </ul>
  485. <a name="Hour-java.util.Date-java.util.TimeZone-">
  486. <!-- -->
  487. </a>
  488. <ul class="blockList">
  489. <li class="blockList">
  490. <h4>Hour</h4>
  491. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.158">Hour</a>(java.util.Date&nbsp;time,
  492. java.util.TimeZone&nbsp;zone)</pre>
  493. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of 1.0.13, use the constructor that specifies the locale
  494. also.</span></div>
  495. <div class="block">Constructs a new instance, based on the supplied date/time evaluated
  496. in the specified time zone.</div>
  497. <dl>
  498. <dt><span class="paramLabel">Parameters:</span></dt>
  499. <dd><code>time</code> - the date-time (<code>null</code> not permitted).</dd>
  500. <dd><code>zone</code> - the time zone (<code>null</code> not permitted).</dd>
  501. </dl>
  502. </li>
  503. </ul>
  504. <a name="Hour-java.util.Date-java.util.TimeZone-java.util.Locale-">
  505. <!-- -->
  506. </a>
  507. <ul class="blockListLast">
  508. <li class="blockList">
  509. <h4>Hour</h4>
  510. <pre>public&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.172">Hour</a>(java.util.Date&nbsp;time,
  511. java.util.TimeZone&nbsp;zone,
  512. java.util.Locale&nbsp;locale)</pre>
  513. <div class="block">Constructs a new instance, based on the supplied date/time evaluated
  514. in the specified time zone.</div>
  515. <dl>
  516. <dt><span class="paramLabel">Parameters:</span></dt>
  517. <dd><code>time</code> - the date-time (<code>null</code> not permitted).</dd>
  518. <dd><code>zone</code> - the time zone (<code>null</code> not permitted).</dd>
  519. <dd><code>locale</code> - the locale (<code>null</code> not permitted).</dd>
  520. <dt><span class="simpleTagLabel">Since:</span></dt>
  521. <dd>1.0.13</dd>
  522. </dl>
  523. </li>
  524. </ul>
  525. </li>
  526. </ul>
  527. <!-- ============ METHOD DETAIL ========== -->
  528. <ul class="blockList">
  529. <li class="blockList"><a name="method.detail">
  530. <!-- -->
  531. </a>
  532. <h3>Method Detail</h3>
  533. <a name="getHour--">
  534. <!-- -->
  535. </a>
  536. <ul class="blockList">
  537. <li class="blockList">
  538. <h4>getHour</h4>
  539. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.188">getHour</a>()</pre>
  540. <div class="block">Returns the hour.</div>
  541. <dl>
  542. <dt><span class="returnLabel">Returns:</span></dt>
  543. <dd>The hour (0 &lt;= hour &lt;= 23).</dd>
  544. </dl>
  545. </li>
  546. </ul>
  547. <a name="getDay--">
  548. <!-- -->
  549. </a>
  550. <ul class="blockList">
  551. <li class="blockList">
  552. <h4>getDay</h4>
  553. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/Day.html" title="class in org.jfree.data.time">Day</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.197">getDay</a>()</pre>
  554. <div class="block">Returns the day in which this hour falls.</div>
  555. <dl>
  556. <dt><span class="returnLabel">Returns:</span></dt>
  557. <dd>The day.</dd>
  558. </dl>
  559. </li>
  560. </ul>
  561. <a name="getYear--">
  562. <!-- -->
  563. </a>
  564. <ul class="blockList">
  565. <li class="blockList">
  566. <h4>getYear</h4>
  567. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.206">getYear</a>()</pre>
  568. <div class="block">Returns the year in which this hour falls.</div>
  569. <dl>
  570. <dt><span class="returnLabel">Returns:</span></dt>
  571. <dd>The year.</dd>
  572. </dl>
  573. </li>
  574. </ul>
  575. <a name="getMonth--">
  576. <!-- -->
  577. </a>
  578. <ul class="blockList">
  579. <li class="blockList">
  580. <h4>getMonth</h4>
  581. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.215">getMonth</a>()</pre>
  582. <div class="block">Returns the month in which this hour falls.</div>
  583. <dl>
  584. <dt><span class="returnLabel">Returns:</span></dt>
  585. <dd>The month.</dd>
  586. </dl>
  587. </li>
  588. </ul>
  589. <a name="getDayOfMonth--">
  590. <!-- -->
  591. </a>
  592. <ul class="blockList">
  593. <li class="blockList">
  594. <h4>getDayOfMonth</h4>
  595. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.224">getDayOfMonth</a>()</pre>
  596. <div class="block">Returns the day-of-the-month in which this hour falls.</div>
  597. <dl>
  598. <dt><span class="returnLabel">Returns:</span></dt>
  599. <dd>The day-of-the-month.</dd>
  600. </dl>
  601. </li>
  602. </ul>
  603. <a name="getFirstMillisecond--">
  604. <!-- -->
  605. </a>
  606. <ul class="blockList">
  607. <li class="blockList">
  608. <h4>getFirstMillisecond</h4>
  609. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.239">getFirstMillisecond</a>()</pre>
  610. <div class="block">Returns the first millisecond of the hour. This will be determined
  611. relative to the time zone specified in the constructor, or in the
  612. calendar instance passed in the most recent call to the
  613. <a href="../../../../org/jfree/data/time/Hour.html#peg-java.util.Calendar-"><code>peg(Calendar)</code></a> method.</div>
  614. <dl>
  615. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  616. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond--">getFirstMillisecond</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  617. <dt><span class="returnLabel">Returns:</span></dt>
  618. <dd>The first millisecond of the hour.</dd>
  619. <dt><span class="seeLabel">See Also:</span></dt>
  620. <dd><a href="../../../../org/jfree/data/time/Hour.html#getLastMillisecond--"><code>getLastMillisecond()</code></a></dd>
  621. </dl>
  622. </li>
  623. </ul>
  624. <a name="getLastMillisecond--">
  625. <!-- -->
  626. </a>
  627. <ul class="blockList">
  628. <li class="blockList">
  629. <h4>getLastMillisecond</h4>
  630. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.254">getLastMillisecond</a>()</pre>
  631. <div class="block">Returns the last millisecond of the hour. This will be
  632. determined relative to the time zone specified in the constructor, or
  633. in the calendar instance passed in the most recent call to the
  634. <a href="../../../../org/jfree/data/time/Hour.html#peg-java.util.Calendar-"><code>peg(Calendar)</code></a> method.</div>
  635. <dl>
  636. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  637. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond--">getLastMillisecond</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  638. <dt><span class="returnLabel">Returns:</span></dt>
  639. <dd>The last millisecond of the hour.</dd>
  640. <dt><span class="seeLabel">See Also:</span></dt>
  641. <dd><a href="../../../../org/jfree/data/time/Hour.html#getFirstMillisecond--"><code>getFirstMillisecond()</code></a></dd>
  642. </dl>
  643. </li>
  644. </ul>
  645. <a name="peg-java.util.Calendar-">
  646. <!-- -->
  647. </a>
  648. <ul class="blockList">
  649. <li class="blockList">
  650. <h4>peg</h4>
  651. <pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.267">peg</a>(java.util.Calendar&nbsp;calendar)</pre>
  652. <div class="block">Recalculates the start date/time and end date/time for this time period
  653. relative to the supplied calendar (which incorporates a time zone).</div>
  654. <dl>
  655. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  656. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#peg-java.util.Calendar-">peg</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  657. <dt><span class="paramLabel">Parameters:</span></dt>
  658. <dd><code>calendar</code> - the calendar (<code>null</code> not permitted).</dd>
  659. <dt><span class="simpleTagLabel">Since:</span></dt>
  660. <dd>1.0.3</dd>
  661. </dl>
  662. </li>
  663. </ul>
  664. <a name="previous--">
  665. <!-- -->
  666. </a>
  667. <ul class="blockList">
  668. <li class="blockList">
  669. <h4>previous</h4>
  670. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.278">previous</a>()</pre>
  671. <div class="block">Returns the hour preceding this one.</div>
  672. <dl>
  673. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  674. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#previous--">previous</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  675. <dt><span class="returnLabel">Returns:</span></dt>
  676. <dd>The hour preceding this one.</dd>
  677. </dl>
  678. </li>
  679. </ul>
  680. <a name="next--">
  681. <!-- -->
  682. </a>
  683. <ul class="blockList">
  684. <li class="blockList">
  685. <h4>next</h4>
  686. <pre>public&nbsp;<a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.301">next</a>()</pre>
  687. <div class="block">Returns the hour following this one.</div>
  688. <dl>
  689. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  690. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#next--">next</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  691. <dt><span class="returnLabel">Returns:</span></dt>
  692. <dd>The hour following this one.</dd>
  693. </dl>
  694. </li>
  695. </ul>
  696. <a name="getSerialIndex--">
  697. <!-- -->
  698. </a>
  699. <ul class="blockList">
  700. <li class="blockList">
  701. <h4>getSerialIndex</h4>
  702. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.324">getSerialIndex</a>()</pre>
  703. <div class="block">Returns a serial index number for the hour.</div>
  704. <dl>
  705. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  706. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getSerialIndex--">getSerialIndex</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  707. <dt><span class="returnLabel">Returns:</span></dt>
  708. <dd>The serial index number.</dd>
  709. </dl>
  710. </li>
  711. </ul>
  712. <a name="getFirstMillisecond-java.util.Calendar-">
  713. <!-- -->
  714. </a>
  715. <ul class="blockList">
  716. <li class="blockList">
  717. <h4>getFirstMillisecond</h4>
  718. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.339">getFirstMillisecond</a>(java.util.Calendar&nbsp;calendar)</pre>
  719. <div class="block">Returns the first millisecond of the hour.</div>
  720. <dl>
  721. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  722. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.Calendar-">getFirstMillisecond</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  723. <dt><span class="paramLabel">Parameters:</span></dt>
  724. <dd><code>calendar</code> - the calendar/timezone (<code>null</code> not permitted).</dd>
  725. <dt><span class="returnLabel">Returns:</span></dt>
  726. <dd>The first millisecond.</dd>
  727. <dt><span class="throwsLabel">Throws:</span></dt>
  728. <dd><code>java.lang.NullPointerException</code> - if <code>calendar</code> is
  729. <code>null</code>.</dd>
  730. <dt><span class="seeLabel">See Also:</span></dt>
  731. <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.Calendar-"><code>RegularTimePeriod.getLastMillisecond(Calendar)</code></a></dd>
  732. </dl>
  733. </li>
  734. </ul>
  735. <a name="getLastMillisecond-java.util.Calendar-">
  736. <!-- -->
  737. </a>
  738. <ul class="blockList">
  739. <li class="blockList">
  740. <h4>getLastMillisecond</h4>
  741. <pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.359">getLastMillisecond</a>(java.util.Calendar&nbsp;calendar)</pre>
  742. <div class="block">Returns the last millisecond of the hour.</div>
  743. <dl>
  744. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  745. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getLastMillisecond-java.util.Calendar-">getLastMillisecond</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  746. <dt><span class="paramLabel">Parameters:</span></dt>
  747. <dd><code>calendar</code> - the calendar/timezone (<code>null</code> not permitted).</dd>
  748. <dt><span class="returnLabel">Returns:</span></dt>
  749. <dd>The last millisecond.</dd>
  750. <dt><span class="throwsLabel">Throws:</span></dt>
  751. <dd><code>java.lang.NullPointerException</code> - if <code>calendar</code> is
  752. <code>null</code>.</dd>
  753. <dt><span class="seeLabel">See Also:</span></dt>
  754. <dd><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#getFirstMillisecond-java.util.Calendar-"><code>RegularTimePeriod.getFirstMillisecond(Calendar)</code></a></dd>
  755. </dl>
  756. </li>
  757. </ul>
  758. <a name="equals-java.lang.Object-">
  759. <!-- -->
  760. </a>
  761. <ul class="blockList">
  762. <li class="blockList">
  763. <h4>equals</h4>
  764. <pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.380">equals</a>(java.lang.Object&nbsp;obj)</pre>
  765. <div class="block">Tests the equality of this object against an arbitrary Object.
  766. <P>
  767. This method will return true ONLY if the object is an Hour object
  768. representing the same hour as this instance.</div>
  769. <dl>
  770. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  771. <dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  772. <dt><span class="paramLabel">Parameters:</span></dt>
  773. <dd><code>obj</code> - the object to compare (<code>null</code> permitted).</dd>
  774. <dt><span class="returnLabel">Returns:</span></dt>
  775. <dd><code>true</code> if the hour and day value of the object
  776. is the same as this.</dd>
  777. </dl>
  778. </li>
  779. </ul>
  780. <a name="toString--">
  781. <!-- -->
  782. </a>
  783. <ul class="blockList">
  784. <li class="blockList">
  785. <h4>toString</h4>
  786. <pre>public&nbsp;java.lang.String&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.404">toString</a>()</pre>
  787. <div class="block">Returns a string representation of this instance, for debugging
  788. purposes.</div>
  789. <dl>
  790. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  791. <dd><code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html#toString--">toString</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/jfree/data/time/RegularTimePeriod.html" title="class in org.jfree.data.time">RegularTimePeriod</a></code></dd>
  792. <dt><span class="returnLabel">Returns:</span></dt>
  793. <dd>A string.</dd>
  794. </dl>
  795. </li>
  796. </ul>
  797. <a name="hashCode--">
  798. <!-- -->
  799. </a>
  800. <ul class="blockList">
  801. <li class="blockList">
  802. <h4>hashCode</h4>
  803. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.419">hashCode</a>()</pre>
  804. <div class="block">Returns a hash code for this object instance. The approach described by
  805. Joshua Bloch in "Effective Java" has been used here:
  806. <p>
  807. <code>http://developer.java.sun.com/developer/Books/effectivejava
  808. /Chapter3.pdf</code></div>
  809. <dl>
  810. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  811. <dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
  812. <dt><span class="returnLabel">Returns:</span></dt>
  813. <dd>A hash code.</dd>
  814. </dl>
  815. </li>
  816. </ul>
  817. <a name="compareTo-java.lang.Object-">
  818. <!-- -->
  819. </a>
  820. <ul class="blockList">
  821. <li class="blockList">
  822. <h4>compareTo</h4>
  823. <pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.437">compareTo</a>(java.lang.Object&nbsp;o1)</pre>
  824. <div class="block">Returns an integer indicating the order of this Hour object relative to
  825. the specified object:
  826. negative == before, zero == same, positive == after.</div>
  827. <dl>
  828. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  829. <dd><code>compareTo</code>&nbsp;in interface&nbsp;<code>java.lang.Comparable</code></dd>
  830. <dt><span class="paramLabel">Parameters:</span></dt>
  831. <dd><code>o1</code> - the object to compare.</dd>
  832. <dt><span class="returnLabel">Returns:</span></dt>
  833. <dd>negative == before, zero == same, positive == after.</dd>
  834. </dl>
  835. </li>
  836. </ul>
  837. <a name="parseHour-java.lang.String-">
  838. <!-- -->
  839. </a>
  840. <ul class="blockListLast">
  841. <li class="blockList">
  842. <h4>parseHour</h4>
  843. <pre>public static&nbsp;<a href="../../../../org/jfree/data/time/Hour.html" title="class in org.jfree.data.time">Hour</a>&nbsp;<a href="../../../../src-html/org/jfree/data/time/Hour.html#line.477">parseHour</a>(java.lang.String&nbsp;s)</pre>
  844. <div class="block">Creates an Hour instance by parsing a string. The string is assumed to
  845. be in the format "YYYY-MM-DD HH", perhaps with leading or trailing
  846. whitespace.</div>
  847. <dl>
  848. <dt><span class="paramLabel">Parameters:</span></dt>
  849. <dd><code>s</code> - the hour string to parse.</dd>
  850. <dt><span class="returnLabel">Returns:</span></dt>
  851. <dd><code>null</code> if the string is not parseable, the hour
  852. otherwise.</dd>
  853. </dl>
  854. </li>
  855. </ul>
  856. </li>
  857. </ul>
  858. </li>
  859. </ul>
  860. </div>
  861. </div>
  862. <!-- ========= END OF CLASS DATA ========= -->
  863. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  864. <div class="bottomNav"><a name="navbar.bottom">
  865. <!-- -->
  866. </a>
  867. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  868. <a name="navbar.bottom.firstrow">
  869. <!-- -->
  870. </a>
  871. <ul class="navList" title="Navigation">
  872. <li><a href="../../../../overview-summary.html">Overview</a></li>
  873. <li><a href="package-summary.html">Package</a></li>
  874. <li class="navBarCell1Rev">Class</li>
  875. <li><a href="class-use/Hour.html">Use</a></li>
  876. <li><a href="package-tree.html">Tree</a></li>
  877. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  878. <li><a href="../../../../index-files/index-1.html">Index</a></li>
  879. <li><a href="../../../../help-doc.html">Help</a></li>
  880. </ul>
  881. </div>
  882. <div class="subNav">
  883. <ul class="navList">
  884. <li><a href="../../../../org/jfree/data/time/FixedMillisecond.html" title="class in org.jfree.data.time"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  885. <li><a href="../../../../org/jfree/data/time/Millisecond.html" title="class in org.jfree.data.time"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  886. </ul>
  887. <ul class="navList">
  888. <li><a href="../../../../index.html?org/jfree/data/time/Hour.html" target="_top">Frames</a></li>
  889. <li><a href="Hour.html" target="_top">No&nbsp;Frames</a></li>
  890. </ul>
  891. <ul class="navList" id="allclasses_navbar_bottom">
  892. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  893. </ul>
  894. <div>
  895. <script type="text/javascript"><!--
  896. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  897. if(window==top) {
  898. allClassesLink.style.display = "block";
  899. }
  900. else {
  901. allClassesLink.style.display = "none";
  902. }
  903. //-->
  904. </script>
  905. </div>
  906. <div>
  907. <ul class="subNavList">
  908. <li>Summary:&nbsp;</li>
  909. <li>Nested&nbsp;|&nbsp;</li>
  910. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  911. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  912. <li><a href="#method.summary">Method</a></li>
  913. </ul>
  914. <ul class="subNavList">
  915. <li>Detail:&nbsp;</li>
  916. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  917. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  918. <li><a href="#method.detail">Method</a></li>
  919. </ul>
  920. </div>
  921. <a name="skip.navbar.bottom">
  922. <!-- -->
  923. </a></div>
  924. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  925. </body>
  926. </html>