1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.4.2_16) on Sat Mar 15 20:43:48 PDT 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 MutableDouble (Commons Lang
2.4 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.lang.mutable.MutableDouble class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"MutableDouble (Commons Lang 2.4 API)";
24 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
27 <!-- ========= START OF TOP NAVBAR ======= -->
28 <A NAME=
"navbar_top"><!-- --></A>
29 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
30 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
32 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
33 <A NAME=
"navbar_top_firstrow"><!-- --></A>
34 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
35 <TR ALIGN=
"center" VALIGN=
"top">
36 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
37 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
38 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/MutableDouble.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
47 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
53 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
54 <A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableByte.html" title=
"class in org.apache.commons.lang.mutable"><B>PREV CLASS
</B></A>
55 <A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableFloat.html" title=
"class in org.apache.commons.lang.mutable"><B>NEXT CLASS
</B></A></FONT></TD>
56 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
57 <A HREF=
"../../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
58 <A HREF=
"MutableDouble.html" target=
"_top"><B>NO FRAMES
</B></A>
59 <SCRIPT type=
"text/javascript">
62 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
73 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
74 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
75 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
76 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
79 <A NAME=
"skip-navbar_top"></A>
80 <!-- ========= END OF TOP NAVBAR ========= -->
83 <!-- ======== START OF CLASS DATA ======== -->
86 org.apache.commons.lang.mutable
</FONT>
88 Class MutableDouble
</H2>
91 <IMG SRC=
"../../../../../resources/inherit.gif" ALT=
"extended by">java.lang.Number
92 <IMG SRC=
"../../../../../resources/inherit.gif" ALT=
"extended by"><B>org.apache.commons.lang.mutable.MutableDouble
</B>
95 <DT><B>All Implemented Interfaces:
</B> <DD>java.lang.Comparable,
<A HREF=
"../../../../../org/apache/commons/lang/mutable/Mutable.html" title=
"interface in org.apache.commons.lang.mutable">Mutable
</A>, java.io.Serializable
</DD>
99 <DT>public class
<B>MutableDouble
</B><DT>extends java.lang.Number
<DT>implements java.lang.Comparable,
<A HREF=
"../../../../../org/apache/commons/lang/mutable/Mutable.html" title=
"interface in org.apache.commons.lang.mutable">Mutable
</A></DL>
102 A mutable
<code>double
</code> wrapper.
107 <DT><B>Since:
</B></DT>
109 <DT><B>Version:
</B></DT>
110 <DD>$Id: MutableDouble.java
618693 2008-
02-
05 16:
33:
29Z sebb $
</DD>
111 <DT><B>See Also:
</B><DD><CODE>Double
</CODE>,
112 <A HREF=
"../../../../../serialized-form.html#org.apache.commons.lang.mutable.MutableDouble">Serialized Form
</A></DL>
116 <!-- ======== NESTED CLASS SUMMARY ======== -->
119 <!-- =========== FIELD SUMMARY =========== -->
122 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
124 <A NAME=
"constructor_summary"><!-- --></A>
125 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
126 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
127 <TD COLSPAN=
2><FONT SIZE=
"+2">
128 <B>Constructor Summary
</B></FONT></TD>
130 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
131 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#MutableDouble()">MutableDouble
</A></B>()
</CODE>
134 Constructs a new MutableDouble with the default value of zero.
</TD>
136 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
137 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#MutableDouble(double)">MutableDouble
</A></B>(double
value)
</CODE>
140 Constructs a new MutableDouble with the specified value.
</TD>
142 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
143 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#MutableDouble(java.lang.Number)">MutableDouble
</A></B>(java.lang.Number
value)
</CODE>
146 Constructs a new MutableDouble with the specified value.
</TD>
150 <!-- ========== METHOD SUMMARY =========== -->
152 <A NAME=
"method_summary"><!-- --></A>
153 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
154 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
155 <TD COLSPAN=
2><FONT SIZE=
"+2">
156 <B>Method Summary
</B></FONT></TD>
158 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
159 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
160 <CODE> void
</CODE></FONT></TD>
161 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#add(double)">add
</A></B>(double
operand)
</CODE>
164 Adds a value.
</TD>
166 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
167 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
168 <CODE> void
</CODE></FONT></TD>
169 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#add(java.lang.Number)">add
</A></B>(java.lang.Number
operand)
</CODE>
172 Adds a value.
</TD>
174 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
175 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
176 <CODE> int
</CODE></FONT></TD>
177 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#compareTo(java.lang.Object)">compareTo
</A></B>(java.lang.Object
obj)
</CODE>
180 Compares this mutable to another in ascending order.
</TD>
182 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
183 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
184 <CODE> void
</CODE></FONT></TD>
185 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#decrement()">decrement
</A></B>()
</CODE>
188 Decrements the value.
</TD>
190 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
191 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
192 <CODE> double
</CODE></FONT></TD>
193 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#doubleValue()">doubleValue
</A></B>()
</CODE>
196 Returns the value of this MutableDouble as a double.
</TD>
198 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
199 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
200 <CODE> boolean
</CODE></FONT></TD>
201 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#equals(java.lang.Object)">equals
</A></B>(java.lang.Object
obj)
</CODE>
204 Compares this object against the specified object.
</TD>
206 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
207 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
208 <CODE> float
</CODE></FONT></TD>
209 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#floatValue()">floatValue
</A></B>()
</CODE>
212 Returns the value of this MutableDouble as a float.
</TD>
214 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
215 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
216 <CODE> java.lang.Object
</CODE></FONT></TD>
217 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#getValue()">getValue
</A></B>()
</CODE>
220 Gets the value as a Double instance.
</TD>
222 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
223 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
224 <CODE> int
</CODE></FONT></TD>
225 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#hashCode()">hashCode
</A></B>()
</CODE>
228 Returns a suitable hashcode for this mutable.
</TD>
230 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
231 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
232 <CODE> void
</CODE></FONT></TD>
233 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#increment()">increment
</A></B>()
</CODE>
236 Increments the value.
</TD>
238 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
239 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
240 <CODE> int
</CODE></FONT></TD>
241 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#intValue()">intValue
</A></B>()
</CODE>
244 Returns the value of this MutableDouble as a int.
</TD>
246 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
247 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
248 <CODE> boolean
</CODE></FONT></TD>
249 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#isInfinite()">isInfinite
</A></B>()
</CODE>
252 Checks whether the double value is infinite.
</TD>
254 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
255 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
256 <CODE> boolean
</CODE></FONT></TD>
257 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#isNaN()">isNaN
</A></B>()
</CODE>
260 Checks whether the double value is the special NaN value.
</TD>
262 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
263 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
264 <CODE> long
</CODE></FONT></TD>
265 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#longValue()">longValue
</A></B>()
</CODE>
268 Returns the value of this MutableDouble as a long.
</TD>
270 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
271 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
272 <CODE> void
</CODE></FONT></TD>
273 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#setValue(double)">setValue
</A></B>(double
value)
</CODE>
276 Sets the value.
</TD>
278 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
279 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
280 <CODE> void
</CODE></FONT></TD>
281 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#setValue(java.lang.Object)">setValue
</A></B>(java.lang.Object
value)
</CODE>
284 Sets the value from any Number instance.
</TD>
286 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
287 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
288 <CODE> void
</CODE></FONT></TD>
289 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#subtract(double)">subtract
</A></B>(double
operand)
</CODE>
292 Subtracts a value.
</TD>
294 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
295 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
296 <CODE> void
</CODE></FONT></TD>
297 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#subtract(java.lang.Number)">subtract
</A></B>(java.lang.Number
operand)
</CODE>
300 Subtracts a value.
</TD>
302 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
303 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
304 <CODE> java.lang.Double
</CODE></FONT></TD>
305 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#toDouble()">toDouble
</A></B>()
</CODE>
308 Gets this mutable as an instance of Double.
</TD>
310 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
311 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
312 <CODE> java.lang.String
</CODE></FONT></TD>
313 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableDouble.html#toString()">toString
</A></B>()
</CODE>
316 Returns the String value of this mutable.
</TD>
319 <A NAME=
"methods_inherited_from_class_java.lang.Number"><!-- --></A>
320 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
321 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
322 <TD><B>Methods inherited from class java.lang.Number
</B></TD>
324 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
325 <TD><CODE>byteValue, shortValue
</CODE></TD>
328 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
329 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
330 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
331 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
333 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
334 <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait
</CODE></TD>
340 <!-- ============ FIELD DETAIL =========== -->
343 <!-- ========= CONSTRUCTOR DETAIL ======== -->
345 <A NAME=
"constructor_detail"><!-- --></A>
346 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
347 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
348 <TD COLSPAN=
1><FONT SIZE=
"+2">
349 <B>Constructor Detail
</B></FONT></TD>
353 <A NAME=
"MutableDouble()"><!-- --></A><H3>
356 public
<B>MutableDouble
</B>()
</PRE>
358 <DD>Constructs a new MutableDouble with the default value of zero.
363 <A NAME=
"MutableDouble(double)"><!-- --></A><H3>
366 public
<B>MutableDouble
</B>(double
value)
</PRE>
368 <DD>Constructs a new MutableDouble with the specified value.
370 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - a value.
</DL>
373 <A NAME=
"MutableDouble(java.lang.Number)"><!-- --></A><H3>
376 public
<B>MutableDouble
</B>(java.lang.Number
value)
</PRE>
378 <DD>Constructs a new MutableDouble with the specified value.
380 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - a value.
382 <DD><CODE>java.lang.NullPointerException
</CODE> - if the object is null
</DL>
384 <!-- ============ METHOD DETAIL ========== -->
386 <A NAME=
"method_detail"><!-- --></A>
387 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
388 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
389 <TD COLSPAN=
1><FONT SIZE=
"+2">
390 <B>Method Detail
</B></FONT></TD>
394 <A NAME=
"getValue()"><!-- --></A><H3>
397 public java.lang.Object
<B>getValue
</B>()
</PRE>
399 <DD>Gets the value as a Double instance.
402 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/mutable/Mutable.html#getValue()">getValue
</A></CODE> in interface
<CODE><A HREF=
"../../../../../org/apache/commons/lang/mutable/Mutable.html" title=
"interface in org.apache.commons.lang.mutable">Mutable
</A></CODE></DL>
406 <DT><B>Returns:
</B><DD>the value as a Double
</DL>
411 <A NAME=
"setValue(double)"><!-- --></A><H3>
414 public void
<B>setValue
</B>(double
value)
</PRE>
422 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - the value to set
</DL>
427 <A NAME=
"setValue(java.lang.Object)"><!-- --></A><H3>
430 public void
<B>setValue
</B>(java.lang.Object
value)
</PRE>
432 <DD>Sets the value from any Number instance.
435 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/mutable/Mutable.html#setValue(java.lang.Object)">setValue
</A></CODE> in interface
<CODE><A HREF=
"../../../../../org/apache/commons/lang/mutable/Mutable.html" title=
"interface in org.apache.commons.lang.mutable">Mutable
</A></CODE></DL>
438 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - the value to set
440 <DD><CODE>java.lang.NullPointerException
</CODE> - if the object is null
441 <DD><CODE>java.lang.ClassCastException
</CODE> - if the type is not a
<CODE>Number
</CODE></DL>
446 <A NAME=
"intValue()"><!-- --></A><H3>
449 public int
<B>intValue
</B>()
</PRE>
451 <DD>Returns the value of this MutableDouble as a int.
458 <DT><B>Returns:
</B><DD>the numeric value represented by this object after conversion to type int.
</DL>
463 <A NAME=
"longValue()"><!-- --></A><H3>
466 public long
<B>longValue
</B>()
</PRE>
468 <DD>Returns the value of this MutableDouble as a long.
475 <DT><B>Returns:
</B><DD>the numeric value represented by this object after conversion to type long.
</DL>
480 <A NAME=
"floatValue()"><!-- --></A><H3>
483 public float
<B>floatValue
</B>()
</PRE>
485 <DD>Returns the value of this MutableDouble as a float.
492 <DT><B>Returns:
</B><DD>the numeric value represented by this object after conversion to type float.
</DL>
497 <A NAME=
"doubleValue()"><!-- --></A><H3>
500 public double
<B>doubleValue
</B>()
</PRE>
502 <DD>Returns the value of this MutableDouble as a double.
509 <DT><B>Returns:
</B><DD>the numeric value represented by this object after conversion to type double.
</DL>
514 <A NAME=
"isNaN()"><!-- --></A><H3>
517 public boolean
<B>isNaN
</B>()
</PRE>
519 <DD>Checks whether the double value is the special NaN value.
526 <DT><B>Returns:
</B><DD>true if NaN
</DL>
531 <A NAME=
"isInfinite()"><!-- --></A><H3>
534 public boolean
<B>isInfinite
</B>()
</PRE>
536 <DD>Checks whether the double value is infinite.
543 <DT><B>Returns:
</B><DD>true if infinite
</DL>
548 <A NAME=
"toDouble()"><!-- --></A><H3>
551 public java.lang.Double
<B>toDouble
</B>()
</PRE>
553 <DD>Gets this mutable as an instance of Double.
560 <DT><B>Returns:
</B><DD>a Double instance containing the value from this mutable
</DL>
565 <A NAME=
"increment()"><!-- --></A><H3>
568 public void
<B>increment
</B>()
</PRE>
570 <DD>Increments the value.
576 <DT><B>Since:
</B></DT>
577 <DD>Commons Lang
2.2</DD>
583 <A NAME=
"decrement()"><!-- --></A><H3>
586 public void
<B>decrement
</B>()
</PRE>
588 <DD>Decrements the value.
594 <DT><B>Since:
</B></DT>
595 <DD>Commons Lang
2.2</DD>
601 <A NAME=
"add(double)"><!-- --></A><H3>
604 public void
<B>add
</B>(double
operand)
</PRE>
612 <DT><B>Parameters:
</B><DD><CODE>operand
</CODE> - the value to add
<DT><B>Since:
</B></DT>
613 <DD>Commons Lang
2.2</DD>
619 <A NAME=
"add(java.lang.Number)"><!-- --></A><H3>
622 public void
<B>add
</B>(java.lang.Number
operand)
</PRE>
630 <DT><B>Parameters:
</B><DD><CODE>operand
</CODE> - the value to add
632 <DD><CODE>java.lang.NullPointerException
</CODE> - if the object is null
<DT><B>Since:
</B></DT>
633 <DD>Commons Lang
2.2</DD>
639 <A NAME=
"subtract(double)"><!-- --></A><H3>
642 public void
<B>subtract
</B>(double
operand)
</PRE>
644 <DD>Subtracts a value.
650 <DT><B>Parameters:
</B><DD><CODE>operand
</CODE> - the value to add
<DT><B>Since:
</B></DT>
651 <DD>Commons Lang
2.2</DD>
657 <A NAME=
"subtract(java.lang.Number)"><!-- --></A><H3>
660 public void
<B>subtract
</B>(java.lang.Number
operand)
</PRE>
662 <DD>Subtracts a value.
668 <DT><B>Parameters:
</B><DD><CODE>operand
</CODE> - the value to add
670 <DD><CODE>java.lang.NullPointerException
</CODE> - if the object is null
<DT><B>Since:
</B></DT>
671 <DD>Commons Lang
2.2</DD>
677 <A NAME=
"equals(java.lang.Object)"><!-- --></A><H3>
680 public boolean
<B>equals
</B>(java.lang.Object
obj)
</PRE>
682 <DD>Compares this object against the specified object. The result is
<code>true
</code> if and only if the argument
683 is not
<code>null
</code> and is a
<code>Double
</code> object that represents a double that has the identical
684 bit pattern to the bit pattern of the double represented by this object. For this purpose, two
685 <code>double
</code> values are considered to be the same if and only if the method
686 <CODE>Double.doubleToLongBits(double)
</CODE>returns the same long value when applied to each.
688 Note that in most cases, for two instances of class
<code>Double
</code>,
<code>d1
</code> and
<code>d2
</code>,
689 the value of
<code>d1.equals(d2)
</code> is
<code>true
</code> if and only if
<blockquote>
692 d1.doubleValue()
== d2.doubleValue()
697 also has the value
<code>true
</code>. However, there are two exceptions:
699 <li>If
<code>d1
</code> and
<code>d2
</code> both represent
<code>Double.NaN
</code>, then the
700 <code>equals
</code> method returns
<code>true
</code>, even though
<code>Double.NaN==Double.NaN
</code> has
701 the value
<code>false
</code>.
702 <li>If
<code>d1
</code> represents
<code>+
0.0</code> while
<code>d2
</code> represents
<code>-
0.0</code>,
703 or vice versa, the
<code>equal
</code> test has the value
<code>false
</code>, even though
704 <code>+
0.0==-
0.0</code> has the value
<code>true
</code>. This allows hashtables to operate properly.
711 <DT><B>Parameters:
</B><DD><CODE>obj
</CODE> - the object to compare with.
712 <DT><B>Returns:
</B><DD><code>true
</code> if the objects are the same;
<code>false
</code> otherwise.
</DL>
717 <A NAME=
"hashCode()"><!-- --></A><H3>
720 public int
<B>hashCode
</B>()
</PRE>
722 <DD>Returns a suitable hashcode for this mutable.
729 <DT><B>Returns:
</B><DD>a suitable hashcode
</DL>
734 <A NAME=
"compareTo(java.lang.Object)"><!-- --></A><H3>
737 public int
<B>compareTo
</B>(java.lang.Object
obj)
</PRE>
739 <DD>Compares this mutable to another in ascending order.
742 <DT><B>Specified by:
</B><DD><CODE>compareTo
</CODE> in interface
<CODE>java.lang.Comparable
</CODE></DL>
745 <DT><B>Parameters:
</B><DD><CODE>obj
</CODE> - the mutable to compare to
746 <DT><B>Returns:
</B><DD>negative if this is less, zero if equal, positive if greater
748 <DD><CODE>java.lang.ClassCastException
</CODE> - if the argument is not a MutableDouble
</DL>
753 <A NAME=
"toString()"><!-- --></A><H3>
756 public java.lang.String
<B>toString
</B>()
</PRE>
758 <DD>Returns the String value of this mutable.
765 <DT><B>Returns:
</B><DD>the mutable value as a string
</DL>
768 <!-- ========= END OF CLASS DATA ========= -->
772 <!-- ======= START OF BOTTOM NAVBAR ====== -->
773 <A NAME=
"navbar_bottom"><!-- --></A>
774 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
775 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
777 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
778 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
779 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
780 <TR ALIGN=
"center" VALIGN=
"top">
781 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
782 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
783 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
784 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/MutableDouble.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
785 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
786 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
787 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
788 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
792 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
798 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
799 <A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableByte.html" title=
"class in org.apache.commons.lang.mutable"><B>PREV CLASS
</B></A>
800 <A HREF=
"../../../../../org/apache/commons/lang/mutable/MutableFloat.html" title=
"class in org.apache.commons.lang.mutable"><B>NEXT CLASS
</B></A></FONT></TD>
801 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
802 <A HREF=
"../../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
803 <A HREF=
"MutableDouble.html" target=
"_top"><B>NO FRAMES
</B></A>
804 <SCRIPT type=
"text/javascript">
807 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
812 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
818 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
819 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
820 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
821 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
824 <A NAME=
"skip-navbar_bottom"></A>
825 <!-- ======== END OF BOTTOM NAVBAR ======= -->
828 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.