PageRenderTime 9ms CodeModel.GetById 24ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

/Reactive4Java/docs/javadoc-0.97/hu/akarnokd/reactive4java/base/Option.Error.html

https://bitbucket.org/mart_bogdan/reactive4java
HTML | 346 lines | 297 code | 0 blank | 49 comment | 0 complexity | 967b15123696943253b7c50f80240eb3 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 lang="hu">
  4<head>
  5<!-- Generated by javadoc (version 1.7.0_11) on Fri Jan 18 11:02:11 CET 2013 -->
  6<title>Option.Error (Reactive and Interactive extensions to Java)</title>
  7<meta name="date" content="2013-01-18">
  8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  9</head>
 10<body>
 11<script type="text/javascript"><!--
 12    if (location.href.indexOf('is-external=true') == -1) {
 13        parent.document.title="Option.Error (Reactive and Interactive extensions to Java)";
 14    }
 15//-->
 16</script>
 17<noscript>
 18<div>JavaScript is disabled on your browser.</div>
 19</noscript>
 20<!-- ========= START OF TOP NAVBAR ======= -->
 21<div class="topNav"><a name="navbar_top">
 22<!--   -->
 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
 24<!--   -->
 25</a>
 26<ul class="navList" title="Navigation">
 27<li><a href="../../../../overview-summary.html">Overview</a></li>
 28<li><a href="package-summary.html">Package</a></li>
 29<li class="navBarCell1Rev">Class</li>
 30<li><a href="class-use/Option.Error.html">Use</a></li>
 31<li><a href="package-tree.html">Tree</a></li>
 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
 33<li><a href="../../../../index-files/index-1.html">Index</a></li>
 34<li><a href="../../../../help-doc.html">Help</a></li>
 35</ul>
 36</div>
 37<div class="subNav">
 38<ul class="navList">
 39<li><a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base"><span class="strong">Prev Class</span></a></li>
 40<li><a href="../../../../hu/akarnokd/reactive4java/base/Option.None.html" title="class in hu.akarnokd.reactive4java.base"><span class="strong">Next Class</span></a></li>
 41</ul>
 42<ul class="navList">
 43<li><a href="../../../../index.html?hu/akarnokd/reactive4java/base/Option.Error.html" target="_top">Frames</a></li>
 44<li><a href="Option.Error.html" target="_top">No Frames</a></li>
 45</ul>
 46<ul class="navList" id="allclasses_navbar_top">
 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
 48</ul>
 49<div>
 50<script type="text/javascript"><!--
 51  allClassesLink = document.getElementById("allclasses_navbar_top");
 52  if(window==top) {
 53    allClassesLink.style.display = "block";
 54  }
 55  else {
 56    allClassesLink.style.display = "none";
 57  }
 58  //-->
 59</script>
 60</div>
 61<div>
 62<ul class="subNavList">
 63<li>Summary:&nbsp;</li>
 64<li><a href="#nested_classes_inherited_from_class_hu.akarnokd.reactive4java.base.Option">Nested</a>&nbsp;|&nbsp;</li>
 65<li>Field&nbsp;|&nbsp;</li>
 66<li>Constr&nbsp;|&nbsp;</li>
 67<li><a href="#method_summary">Method</a></li>
 68</ul>
 69<ul class="subNavList">
 70<li>Detail:&nbsp;</li>
 71<li>Field&nbsp;|&nbsp;</li>
 72<li>Constr&nbsp;|&nbsp;</li>
 73<li><a href="#method_detail">Method</a></li>
 74</ul>
 75</div>
 76<a name="skip-navbar_top">
 77<!--   -->
 78</a></div>
 79<!-- ========= END OF TOP NAVBAR ========= -->
 80<!-- ======== START OF CLASS DATA ======== -->
 81<div class="header">
 82<div class="subTitle">hu.akarnokd.reactive4java.base</div>
 83<h2 title="Class Option.Error" class="title">Class Option.Error&lt;T&gt;</h2>
 84</div>
 85<div class="contentContainer">
 86<ul class="inheritance">
 87<li><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
 88<li>
 89<ul class="inheritance">
 90<li><a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">hu.akarnokd.reactive4java.base.Option</a>&lt;T&gt;</li>
 91<li>
 92<ul class="inheritance">
 93<li>hu.akarnokd.reactive4java.base.Option.Error&lt;T&gt;</li>
 94</ul>
 95</li>
 96</ul>
 97</li>
 98</ul>
 99<div class="description">
100<ul class="blockList">
101<li class="blockList">
102<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - the element type</dd></dl>
103<dl>
104<dt>Enclosing class:</dt>
105<dd><a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">Option</a>&lt;<a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="type parameter in Option">T</a>&gt;</dd>
106</dl>
107<hr>
108<br>
109<pre>public static final class <span class="strong">Option.Error&lt;T&gt;</span>
110extends <a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">Option</a>&lt;T&gt;</pre>
111<div class="block">Class representing an error option.
112 Calling value on this will throw a RuntimeException which wraps
113 the original exception.</div>
114<dl><dt><span class="strong">Author:</span></dt>
115  <dd>akarnokd, 2011.01.30.</dd></dl>
116</li>
117</ul>
118</div>
119<div class="summary">
120<ul class="blockList">
121<li class="blockList">
122<!-- ======== NESTED CLASS SUMMARY ======== -->
123<ul class="blockList">
124<li class="blockList"><a name="nested_class_summary">
125<!--   -->
126</a>
127<h3>Nested Class Summary</h3>
128<ul class="blockList">
129<li class="blockList"><a name="nested_classes_inherited_from_class_hu.akarnokd.reactive4java.base.Option">
130<!--   -->
131</a>
132<h3>Nested classes/interfaces inherited from class&nbsp;hu.akarnokd.reactive4java.base.<a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">Option</a></h3>
133<code><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html" title="class in hu.akarnokd.reactive4java.base">Option.Error</a>&lt;<a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html" title="type parameter in Option.Error">T</a>&gt;, <a href="../../../../hu/akarnokd/reactive4java/base/Option.None.html" title="class in hu.akarnokd.reactive4java.base">Option.None</a>&lt;<a href="../../../../hu/akarnokd/reactive4java/base/Option.None.html" title="type parameter in Option.None">T</a>&gt;, <a href="../../../../hu/akarnokd/reactive4java/base/Option.Some.html" title="class in hu.akarnokd.reactive4java.base">Option.Some</a>&lt;<a href="../../../../hu/akarnokd/reactive4java/base/Option.Some.html" title="type parameter in Option.Some">T</a>&gt;</code></li>
134</ul>
135</li>
136</ul>
137<!-- ========== METHOD SUMMARY =========== -->
138<ul class="blockList">
139<li class="blockList"><a name="method_summary">
140<!--   -->
141</a>
142<h3>Method Summary</h3>
143<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
144<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
145<tr>
146<th class="colFirst" scope="col">Modifier and Type</th>
147<th class="colLast" scope="col">Method and Description</th>
148</tr>
149<tr class="altColor">
150<td class="colFirst"><code>boolean</code></td>
151<td class="colLast"><code><strong><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</code>&nbsp;</td>
152</tr>
153<tr class="rowColor">
154<td class="colFirst"><code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td>
155<td class="colLast"><code><strong><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html#error()">error</a></strong>()</code>&nbsp;</td>
156</tr>
157<tr class="altColor">
158<td class="colFirst"><code>boolean</code></td>
159<td class="colLast"><code><strong><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html#hasError()">hasError</a></strong>()</code>&nbsp;</td>
160</tr>
161<tr class="rowColor">
162<td class="colFirst"><code>int</code></td>
163<td class="colLast"><code><strong><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
164</tr>
165<tr class="altColor">
166<td class="colFirst"><code><a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
167<td class="colLast"><code><strong><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html#toString()">toString</a></strong>()</code>&nbsp;</td>
168</tr>
169<tr class="rowColor">
170<td class="colFirst"><code><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html" title="type parameter in Option.Error">T</a></code></td>
171<td class="colLast"><code><strong><a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html#value()">value</a></strong>()</code>&nbsp;</td>
172</tr>
173</table>
174<ul class="blockList">
175<li class="blockList"><a name="methods_inherited_from_class_hu.akarnokd.reactive4java.base.Option">
176<!--   -->
177</a>
178<h3>Methods inherited from class&nbsp;hu.akarnokd.reactive4java.base.<a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">Option</a></h3>
179<code><a href="../../../../hu/akarnokd/reactive4java/base/Option.html#error(java.lang.Throwable)">error</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#getError(hu.akarnokd.reactive4java.base.Option)">getError</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#hasValue()">hasValue</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#isError(hu.akarnokd.reactive4java.base.Option)">isError</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#isNone()">isNone</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#isNone(hu.akarnokd.reactive4java.base.Option)">isNone</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#isSome(hu.akarnokd.reactive4java.base.Option)">isSome</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#none()">none</a>, <a href="../../../../hu/akarnokd/reactive4java/base/Option.html#some(T)">some</a></code></li>
180</ul>
181<ul class="blockList">
182<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
183<!--   -->
184</a>
185<h3>Methods inherited from class&nbsp;java.lang.<a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
186<code><a href="http://java.sun.com/javase/7/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/javase/7/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/javase/7/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/javase/7/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/javase/7/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/javase/7/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/javase/7/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/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
187</ul>
188</li>
189</ul>
190</li>
191</ul>
192</div>
193<div class="details">
194<ul class="blockList">
195<li class="blockList">
196<!-- ============ METHOD DETAIL ========== -->
197<ul class="blockList">
198<li class="blockList"><a name="method_detail">
199<!--   -->
200</a>
201<h3>Method Detail</h3>
202<a name="value()">
203<!--   -->
204</a>
205<ul class="blockList">
206<li class="blockList">
207<h4>value</h4>
208<pre>public&nbsp;<a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html" title="type parameter in Option.Error">T</a>&nbsp;value()</pre>
209<dl>
210<dt><strong>Specified by:</strong></dt>
211<dd><code><a href="../../../../hu/akarnokd/reactive4java/base/Option.html#value()">value</a></code>&nbsp;in class&nbsp;<code><a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">Option</a>&lt;<a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html" title="type parameter in Option.Error">T</a>&gt;</code></dd>
212<dt><span class="strong">Returns:</span></dt><dd>query for the value.</dd></dl>
213</li>
214</ul>
215<a name="hasError()">
216<!--   -->
217</a>
218<ul class="blockList">
219<li class="blockList">
220<h4>hasError</h4>
221<pre>public&nbsp;boolean&nbsp;hasError()</pre>
222<dl>
223<dt><strong>Overrides:</strong></dt>
224<dd><code><a href="../../../../hu/akarnokd/reactive4java/base/Option.html#hasError()">hasError</a></code>&nbsp;in class&nbsp;<code><a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base">Option</a>&lt;<a href="../../../../hu/akarnokd/reactive4java/base/Option.Error.html" title="type parameter in Option.Error">T</a>&gt;</code></dd>
225<dt><span class="strong">Returns:</span></dt><dd>true if this option has an error (not value).</dd></dl>
226</li>
227</ul>
228<a name="toString()">
229<!--   -->
230</a>
231<ul class="blockList">
232<li class="blockList">
233<h4>toString</h4>
234<pre>public&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
235<dl>
236<dt><strong>Overrides:</strong></dt>
237<dd><code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
238</dl>
239</li>
240</ul>
241<a name="error()">
242<!--   -->
243</a>
244<ul class="blockList">
245<li class="blockList">
246<h4>error</h4>
247<pre><a href="http://java.sun.com/javase/7/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a>
248public&nbsp;<a href="http://java.sun.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;error()</pre>
249<dl><dt><span class="strong">Returns:</span></dt><dd>the contained throwable value.</dd></dl>
250</li>
251</ul>
252<a name="hashCode()">
253<!--   -->
254</a>
255<ul class="blockList">
256<li class="blockList">
257<h4>hashCode</h4>
258<pre>public&nbsp;int&nbsp;hashCode()</pre>
259<dl>
260<dt><strong>Overrides:</strong></dt>
261<dd><code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
262</dl>
263</li>
264</ul>
265<a name="equals(java.lang.Object)">
266<!--   -->
267</a>
268<ul class="blockListLast">
269<li class="blockList">
270<h4>equals</h4>
271<pre>public&nbsp;boolean&nbsp;equals(<a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
272<dl>
273<dt><strong>Overrides:</strong></dt>
274<dd><code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="http://java.sun.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
275</dl>
276</li>
277</ul>
278</li>
279</ul>
280</li>
281</ul>
282</div>
283</div>
284<!-- ========= END OF CLASS DATA ========= -->
285<!-- ======= START OF BOTTOM NAVBAR ====== -->
286<div class="bottomNav"><a name="navbar_bottom">
287<!--   -->
288</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
289<!--   -->
290</a>
291<ul class="navList" title="Navigation">
292<li><a href="../../../../overview-summary.html">Overview</a></li>
293<li><a href="package-summary.html">Package</a></li>
294<li class="navBarCell1Rev">Class</li>
295<li><a href="class-use/Option.Error.html">Use</a></li>
296<li><a href="package-tree.html">Tree</a></li>
297<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
298<li><a href="../../../../index-files/index-1.html">Index</a></li>
299<li><a href="../../../../help-doc.html">Help</a></li>
300</ul>
301</div>
302<div class="subNav">
303<ul class="navList">
304<li><a href="../../../../hu/akarnokd/reactive4java/base/Option.html" title="class in hu.akarnokd.reactive4java.base"><span class="strong">Prev Class</span></a></li>
305<li><a href="../../../../hu/akarnokd/reactive4java/base/Option.None.html" title="class in hu.akarnokd.reactive4java.base"><span class="strong">Next Class</span></a></li>
306</ul>
307<ul class="navList">
308<li><a href="../../../../index.html?hu/akarnokd/reactive4java/base/Option.Error.html" target="_top">Frames</a></li>
309<li><a href="Option.Error.html" target="_top">No Frames</a></li>
310</ul>
311<ul class="navList" id="allclasses_navbar_bottom">
312<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
313</ul>
314<div>
315<script type="text/javascript"><!--
316  allClassesLink = document.getElementById("allclasses_navbar_bottom");
317  if(window==top) {
318    allClassesLink.style.display = "block";
319  }
320  else {
321    allClassesLink.style.display = "none";
322  }
323  //-->
324</script>
325</div>
326<div>
327<ul class="subNavList">
328<li>Summary:&nbsp;</li>
329<li><a href="#nested_classes_inherited_from_class_hu.akarnokd.reactive4java.base.Option">Nested</a>&nbsp;|&nbsp;</li>
330<li>Field&nbsp;|&nbsp;</li>
331<li>Constr&nbsp;|&nbsp;</li>
332<li><a href="#method_summary">Method</a></li>
333</ul>
334<ul class="subNavList">
335<li>Detail:&nbsp;</li>
336<li>Field&nbsp;|&nbsp;</li>
337<li>Constr&nbsp;|&nbsp;</li>
338<li><a href="#method_detail">Method</a></li>
339</ul>
340</div>
341<a name="skip-navbar_bottom">
342<!--   -->
343</a></div>
344<!-- ======== END OF BOTTOM NAVBAR ======= -->
345</body>
346</html>