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 DoubleRange (Commons Lang
2.4 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.lang.math.DoubleRange 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=
"DoubleRange (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/DoubleRange.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 PREV CLASS
55 <A HREF=
"../../../../../org/apache/commons/lang/math/FloatRange.html" title=
"class in org.apache.commons.lang.math"><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=
"DoubleRange.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.math
</FONT>
88 Class DoubleRange
</H2>
91 <IMG SRC=
"../../../../../resources/inherit.gif" ALT=
"extended by"><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">org.apache.commons.lang.math.Range
</A>
92 <IMG SRC=
"../../../../../resources/inherit.gif" ALT=
"extended by"><B>org.apache.commons.lang.math.DoubleRange
</B>
95 <DT><B>All Implemented Interfaces:
</B> <DD>java.io.Serializable
</DD>
99 <DT>public final class
<B>DoubleRange
</B><DT>extends
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A><DT>implements java.io.Serializable
</DL>
102 <p><code>DoubleRange
</code> represents an inclusive range of
<code>double
</code>s.
</p>
107 <DT><B>Since:
</B></DT>
109 <DT><B>Version:
</B></DT>
110 <DD>$Id: DoubleRange.java
437554 2006-
08-
28 06:
21:
41Z bayard $
</DD>
111 <DT><B>Author:
</B></DT>
112 <DD>Stephen Colebourne
</DD>
113 <DT><B>See Also:
</B><DD><A HREF=
"../../../../../serialized-form.html#org.apache.commons.lang.math.DoubleRange">Serialized Form
</A></DL>
117 <!-- ======== NESTED CLASS SUMMARY ======== -->
120 <!-- =========== FIELD SUMMARY =========== -->
123 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
125 <A NAME=
"constructor_summary"><!-- --></A>
126 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
127 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
128 <TD COLSPAN=
2><FONT SIZE=
"+2">
129 <B>Constructor Summary
</B></FONT></TD>
131 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
132 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#DoubleRange(double)">DoubleRange
</A></B>(double
number)
</CODE>
135 Constructs a new
<code>DoubleRange
</code> using the specified
136 number as both the minimum and maximum in this range.
</TD>
138 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
139 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#DoubleRange(double, double)">DoubleRange
</A></B>(double
number1,
140 double
number2)
</CODE>
143 Constructs a new
<code>DoubleRange
</code> with the specified
144 minimum and maximum numbers (both inclusive).
</TD>
146 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
147 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#DoubleRange(java.lang.Number)">DoubleRange
</A></B>(java.lang.Number
number)
</CODE>
150 Constructs a new
<code>DoubleRange
</code> using the specified
151 number as both the minimum and maximum in this range.
</TD>
153 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
154 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#DoubleRange(java.lang.Number, java.lang.Number)">DoubleRange
</A></B>(java.lang.Number
number1,
155 java.lang.Number
number2)
</CODE>
158 Constructs a new
<code>DoubleRange
</code> with the specified
159 minimum and maximum numbers (both inclusive).
</TD>
163 <!-- ========== METHOD SUMMARY =========== -->
165 <A NAME=
"method_summary"><!-- --></A>
166 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
167 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
168 <TD COLSPAN=
2><FONT SIZE=
"+2">
169 <B>Method Summary
</B></FONT></TD>
171 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
172 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
173 <CODE> boolean
</CODE></FONT></TD>
174 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#containsDouble(double)">containsDouble
</A></B>(double
value)
</CODE>
177 Tests whether the specified
<code>double
</code> occurs within
178 this range using
<code>double
</code> comparison.
</TD>
180 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
181 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
182 <CODE> boolean
</CODE></FONT></TD>
183 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#containsNumber(java.lang.Number)">containsNumber
</A></B>(java.lang.Number
number)
</CODE>
186 Tests whether the specified
<code>number
</code> occurs within
187 this range using
<code>double
</code> comparison.
</TD>
189 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
190 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
191 <CODE> boolean
</CODE></FONT></TD>
192 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#containsRange(org.apache.commons.lang.math.Range)">containsRange
</A></B>(
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A> range)
</CODE>
195 Tests whether the specified range occurs entirely within this range
196 using
<code>double
</code> comparison.
</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/math/DoubleRange.html#equals(java.lang.Object)">equals
</A></B>(java.lang.Object
obj)
</CODE>
204 Compares this range to another object to test if they are equal.
</TD>
206 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
207 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
208 <CODE> double
</CODE></FONT></TD>
209 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMaximumDouble()">getMaximumDouble
</A></B>()
</CODE>
212 Gets the maximum number in this range as a
<code>double
</code>.
</TD>
214 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
215 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
216 <CODE> float
</CODE></FONT></TD>
217 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMaximumFloat()">getMaximumFloat
</A></B>()
</CODE>
220 Gets the maximum number in this range as a
<code>float
</code>.
</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/math/DoubleRange.html#getMaximumInteger()">getMaximumInteger
</A></B>()
</CODE>
228 Gets the maximum number in this range as a
<code>int
</code>.
</TD>
230 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
231 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
232 <CODE> long
</CODE></FONT></TD>
233 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMaximumLong()">getMaximumLong
</A></B>()
</CODE>
236 Gets the maximum number in this range as a
<code>long
</code>.
</TD>
238 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
239 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
240 <CODE> java.lang.Number
</CODE></FONT></TD>
241 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMaximumNumber()">getMaximumNumber
</A></B>()
</CODE>
244 Returns the maximum number in this range.
</TD>
246 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
247 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
248 <CODE> double
</CODE></FONT></TD>
249 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMinimumDouble()">getMinimumDouble
</A></B>()
</CODE>
252 Gets the minimum number in this range as a
<code>double
</code>.
</TD>
254 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
255 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
256 <CODE> float
</CODE></FONT></TD>
257 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMinimumFloat()">getMinimumFloat
</A></B>()
</CODE>
260 Gets the minimum number in this range as a
<code>float
</code>.
</TD>
262 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
263 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
264 <CODE> int
</CODE></FONT></TD>
265 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMinimumInteger()">getMinimumInteger
</A></B>()
</CODE>
268 Gets the minimum number in this range as a
<code>int
</code>.
</TD>
270 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
271 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
272 <CODE> long
</CODE></FONT></TD>
273 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMinimumLong()">getMinimumLong
</A></B>()
</CODE>
276 Gets the minimum number in this range as a
<code>long
</code>.
</TD>
278 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
279 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
280 <CODE> java.lang.Number
</CODE></FONT></TD>
281 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#getMinimumNumber()">getMinimumNumber
</A></B>()
</CODE>
284 Returns the minimum number in this range.
</TD>
286 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
287 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
288 <CODE> int
</CODE></FONT></TD>
289 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#hashCode()">hashCode
</A></B>()
</CODE>
292 Gets a hashCode for the range.
</TD>
294 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
295 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
296 <CODE> boolean
</CODE></FONT></TD>
297 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#overlapsRange(org.apache.commons.lang.math.Range)">overlapsRange
</A></B>(
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A> range)
</CODE>
300 Tests whether the specified range overlaps with this range
301 using
<code>double
</code> comparison.
</TD>
303 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
304 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
305 <CODE> java.lang.String
</CODE></FONT></TD>
306 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/lang/math/DoubleRange.html#toString()">toString
</A></B>()
</CODE>
309 Gets the range as a
<code>String
</code>.
</TD>
312 <A NAME=
"methods_inherited_from_class_org.apache.commons.lang.math.Range"><!-- --></A>
313 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
314 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
315 <TD><B>Methods inherited from class org.apache.commons.lang.math.
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></B></TD>
317 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
318 <TD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsDouble(java.lang.Number)">containsDouble
</A>,
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsFloat(float)">containsFloat
</A>,
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsFloat(java.lang.Number)">containsFloat
</A>,
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsInteger(int)">containsInteger
</A>,
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsInteger(java.lang.Number)">containsInteger
</A>,
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsLong(long)">containsLong
</A>,
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsLong(java.lang.Number)">containsLong
</A></CODE></TD>
321 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
322 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
323 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
324 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
326 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
327 <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait
</CODE></TD>
333 <!-- ============ FIELD DETAIL =========== -->
336 <!-- ========= CONSTRUCTOR DETAIL ======== -->
338 <A NAME=
"constructor_detail"><!-- --></A>
339 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
340 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
341 <TD COLSPAN=
1><FONT SIZE=
"+2">
342 <B>Constructor Detail
</B></FONT></TD>
346 <A NAME=
"DoubleRange(double)"><!-- --></A><H3>
349 public
<B>DoubleRange
</B>(double
number)
</PRE>
351 <DD><p>Constructs a new
<code>DoubleRange
</code> using the specified
352 number as both the minimum and maximum in this range.
</p>
354 <DT><B>Parameters:
</B><DD><CODE>number
</CODE> - the number to use for this range
356 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the number is
<code>NaN
</code></DL>
359 <A NAME=
"DoubleRange(java.lang.Number)"><!-- --></A><H3>
362 public
<B>DoubleRange
</B>(java.lang.Number
number)
</PRE>
364 <DD><p>Constructs a new
<code>DoubleRange
</code> using the specified
365 number as both the minimum and maximum in this range.
</p>
367 <DT><B>Parameters:
</B><DD><CODE>number
</CODE> - the number to use for this range, must not
370 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the number is
<code>null
</code>
371 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the number is
<code>NaN
</code></DL>
374 <A NAME=
"DoubleRange(double, double)"><!-- --></A><H3>
377 public
<B>DoubleRange
</B>(double
number1,
378 double
number2)
</PRE>
380 <DD><p>Constructs a new
<code>DoubleRange
</code> with the specified
381 minimum and maximum numbers (both inclusive).
</p>
383 <p>The arguments may be passed in the order (min,max) or (max,min). The
384 getMinimum and getMaximum methods will return the correct values.
</p>
386 <DT><B>Parameters:
</B><DD><CODE>number1
</CODE> - first number that defines the edge of the range, inclusive
<DD><CODE>number2
</CODE> - second number that defines the edge of the range, inclusive
388 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if either number is
<code>NaN
</code></DL>
391 <A NAME=
"DoubleRange(java.lang.Number, java.lang.Number)"><!-- --></A><H3>
394 public
<B>DoubleRange
</B>(java.lang.Number
number1,
395 java.lang.Number
number2)
</PRE>
397 <DD><p>Constructs a new
<code>DoubleRange
</code> with the specified
398 minimum and maximum numbers (both inclusive).
</p>
400 <p>The arguments may be passed in the order (min,max) or (max,min). The
401 getMinimum and getMaximum methods will return the correct values.
</p>
403 <DT><B>Parameters:
</B><DD><CODE>number1
</CODE> - first number that defines the edge of the range, inclusive
<DD><CODE>number2
</CODE> - second number that defines the edge of the range, inclusive
405 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if either number is
<code>null
</code>
406 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if either number is
<code>NaN
</code></DL>
408 <!-- ============ METHOD DETAIL ========== -->
410 <A NAME=
"method_detail"><!-- --></A>
411 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
412 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
413 <TD COLSPAN=
1><FONT SIZE=
"+2">
414 <B>Method Detail
</B></FONT></TD>
418 <A NAME=
"getMinimumNumber()"><!-- --></A><H3>
419 getMinimumNumber
</H3>
421 public java.lang.Number
<B>getMinimumNumber
</B>()
</PRE>
423 <DD><p>Returns the minimum number in this range.
</p>
426 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMinimumNumber()">getMinimumNumber
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
430 <DT><B>Returns:
</B><DD>the minimum number in this range
</DL>
435 <A NAME=
"getMinimumLong()"><!-- --></A><H3>
438 public long
<B>getMinimumLong
</B>()
</PRE>
440 <DD><p>Gets the minimum number in this range as a
<code>long
</code>.
</p>
442 <p>This conversion can lose information for large values or decimals.
</p>
445 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMinimumLong()">getMinimumLong
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
449 <DT><B>Returns:
</B><DD>the minimum number in this range
</DL>
454 <A NAME=
"getMinimumInteger()"><!-- --></A><H3>
455 getMinimumInteger
</H3>
457 public int
<B>getMinimumInteger
</B>()
</PRE>
459 <DD><p>Gets the minimum number in this range as a
<code>int
</code>.
</p>
461 <p>This conversion can lose information for large values or decimals.
</p>
464 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMinimumInteger()">getMinimumInteger
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
468 <DT><B>Returns:
</B><DD>the minimum number in this range
</DL>
473 <A NAME=
"getMinimumDouble()"><!-- --></A><H3>
474 getMinimumDouble
</H3>
476 public double
<B>getMinimumDouble
</B>()
</PRE>
478 <DD><p>Gets the minimum number in this range as a
<code>double
</code>.
</p>
481 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMinimumDouble()">getMinimumDouble
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
485 <DT><B>Returns:
</B><DD>the minimum number in this range
</DL>
490 <A NAME=
"getMinimumFloat()"><!-- --></A><H3>
493 public float
<B>getMinimumFloat
</B>()
</PRE>
495 <DD><p>Gets the minimum number in this range as a
<code>float
</code>.
</p>
497 <p>This conversion can lose information for large values.
</p>
500 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMinimumFloat()">getMinimumFloat
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
504 <DT><B>Returns:
</B><DD>the minimum number in this range
</DL>
509 <A NAME=
"getMaximumNumber()"><!-- --></A><H3>
510 getMaximumNumber
</H3>
512 public java.lang.Number
<B>getMaximumNumber
</B>()
</PRE>
514 <DD><p>Returns the maximum number in this range.
</p>
517 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMaximumNumber()">getMaximumNumber
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
521 <DT><B>Returns:
</B><DD>the maximum number in this range
</DL>
526 <A NAME=
"getMaximumLong()"><!-- --></A><H3>
529 public long
<B>getMaximumLong
</B>()
</PRE>
531 <DD><p>Gets the maximum number in this range as a
<code>long
</code>.
</p>
533 <p>This conversion can lose information for large values or decimals.
</p>
536 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMaximumLong()">getMaximumLong
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
540 <DT><B>Returns:
</B><DD>the maximum number in this range
</DL>
545 <A NAME=
"getMaximumInteger()"><!-- --></A><H3>
546 getMaximumInteger
</H3>
548 public int
<B>getMaximumInteger
</B>()
</PRE>
550 <DD><p>Gets the maximum number in this range as a
<code>int
</code>.
</p>
552 <p>This conversion can lose information for large values or decimals.
</p>
555 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMaximumInteger()">getMaximumInteger
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
559 <DT><B>Returns:
</B><DD>the maximum number in this range
</DL>
564 <A NAME=
"getMaximumDouble()"><!-- --></A><H3>
565 getMaximumDouble
</H3>
567 public double
<B>getMaximumDouble
</B>()
</PRE>
569 <DD><p>Gets the maximum number in this range as a
<code>double
</code>.
</p>
572 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMaximumDouble()">getMaximumDouble
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
576 <DT><B>Returns:
</B><DD>the maximum number in this range
</DL>
581 <A NAME=
"getMaximumFloat()"><!-- --></A><H3>
584 public float
<B>getMaximumFloat
</B>()
</PRE>
586 <DD><p>Gets the maximum number in this range as a
<code>float
</code>.
</p>
588 <p>This conversion can lose information for large values.
</p>
591 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#getMaximumFloat()">getMaximumFloat
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
595 <DT><B>Returns:
</B><DD>the maximum number in this range
</DL>
600 <A NAME=
"containsNumber(java.lang.Number)"><!-- --></A><H3>
603 public boolean
<B>containsNumber
</B>(java.lang.Number
number)
</PRE>
605 <DD><p>Tests whether the specified
<code>number
</code> occurs within
606 this range using
<code>double
</code> comparison.
</p>
608 <p><code>null
</code> is handled and returns
<code>false
</code>.
</p>
611 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsNumber(java.lang.Number)">containsNumber
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
614 <DT><B>Parameters:
</B><DD><CODE>number
</CODE> - the number to test, may be
<code>null
</code>
615 <DT><B>Returns:
</B><DD><code>true
</code> if the specified number occurs within this range
</DL>
620 <A NAME=
"containsDouble(double)"><!-- --></A><H3>
623 public boolean
<B>containsDouble
</B>(double
value)
</PRE>
625 <DD><p>Tests whether the specified
<code>double
</code> occurs within
626 this range using
<code>double
</code> comparison.
</p>
628 <p>This implementation overrides the superclass for performance as it is
629 the most common case.
</p>
632 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsDouble(double)">containsDouble
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
635 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - the double to test
636 <DT><B>Returns:
</B><DD><code>true
</code> if the specified number occurs within this
637 range by
<code>double
</code> comparison
</DL>
642 <A NAME=
"containsRange(org.apache.commons.lang.math.Range)"><!-- --></A><H3>
645 public boolean
<B>containsRange
</B>(
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A> range)
</PRE>
647 <DD><p>Tests whether the specified range occurs entirely within this range
648 using
<code>double
</code> comparison.
</p>
650 <p><code>null
</code> is handled and returns
<code>false
</code>.
</p>
653 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#containsRange(org.apache.commons.lang.math.Range)">containsRange
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
656 <DT><B>Parameters:
</B><DD><CODE>range
</CODE> - the range to test, may be
<code>null
</code>
657 <DT><B>Returns:
</B><DD><code>true
</code> if the specified range occurs entirely within this range
659 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the range is not of this type
</DL>
664 <A NAME=
"overlapsRange(org.apache.commons.lang.math.Range)"><!-- --></A><H3>
667 public boolean
<B>overlapsRange
</B>(
<A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A> range)
</PRE>
669 <DD><p>Tests whether the specified range overlaps with this range
670 using
<code>double
</code> comparison.
</p>
672 <p><code>null
</code> is handled and returns
<code>false
</code>.
</p>
675 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#overlapsRange(org.apache.commons.lang.math.Range)">overlapsRange
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
678 <DT><B>Parameters:
</B><DD><CODE>range
</CODE> - the range to test, may be
<code>null
</code>
679 <DT><B>Returns:
</B><DD><code>true
</code> if the specified range overlaps with this range
</DL>
684 <A NAME=
"equals(java.lang.Object)"><!-- --></A><H3>
687 public boolean
<B>equals
</B>(java.lang.Object
obj)
</PRE>
689 <DD><p>Compares this range to another object to test if they are equal.
</p>.
691 <p>To be equal, the class, minimum and maximum must be equal.
</p>
694 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#equals(java.lang.Object)">equals
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
697 <DT><B>Parameters:
</B><DD><CODE>obj
</CODE> - the reference object with which to compare
698 <DT><B>Returns:
</B><DD><code>true
</code> if this object is equal
</DL>
703 <A NAME=
"hashCode()"><!-- --></A><H3>
706 public int
<B>hashCode
</B>()
</PRE>
708 <DD><p>Gets a hashCode for the range.
</p>
711 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#hashCode()">hashCode
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
715 <DT><B>Returns:
</B><DD>a hash code value for this object
</DL>
720 <A NAME=
"toString()"><!-- --></A><H3>
723 public java.lang.String
<B>toString
</B>()
</PRE>
725 <DD><p>Gets the range as a
<code>String
</code>.
</p>
727 <p>The format of the String is 'Range[
<i>min
</i>,
<i>max
</i>]'.
</p>
730 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html#toString()">toString
</A></CODE> in class
<CODE><A HREF=
"../../../../../org/apache/commons/lang/math/Range.html" title=
"class in org.apache.commons.lang.math">Range
</A></CODE></DL>
734 <DT><B>Returns:
</B><DD>the
<code>String
</code> representation of this range
</DL>
737 <!-- ========= END OF CLASS DATA ========= -->
741 <!-- ======= START OF BOTTOM NAVBAR ====== -->
742 <A NAME=
"navbar_bottom"><!-- --></A>
743 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
744 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
746 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
747 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
748 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
749 <TR ALIGN=
"center" VALIGN=
"top">
750 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
751 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
752 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
753 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/DoubleRange.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
754 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
755 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
756 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
757 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
761 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
767 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
768 PREV CLASS
769 <A HREF=
"../../../../../org/apache/commons/lang/math/FloatRange.html" title=
"class in org.apache.commons.lang.math"><B>NEXT CLASS
</B></A></FONT></TD>
770 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
771 <A HREF=
"../../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
772 <A HREF=
"DoubleRange.html" target=
"_top"><B>NO FRAMES
</B></A>
773 <SCRIPT type=
"text/javascript">
776 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
781 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
787 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
788 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
789 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
790 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
793 <A NAME=
"skip-navbar_bottom"></A>
794 <!-- ======== END OF BOTTOM NAVBAR ======= -->
797 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.