Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / docs / java / com / sleepycat / bind / tuple / DoubleBinding.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_23) on Fri May 11 14:10:06 EDT 2012 -->
6 <TITLE>
7 DoubleBinding (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2012-05-11">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17     if (location.href.indexOf('is-external=true') == -1) {
18         parent.document.title="DoubleBinding (Oracle - Berkeley DB Java API)";
19     }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39   <TR ALIGN="center" VALIGN="top">
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DoubleBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48   </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.21</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/CharacterBinding.html" title="class in com.sleepycat.bind.tuple"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/FloatBinding.html" title="class in com.sleepycat.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61   <A HREF="../../../../index.html?com/sleepycat/bind/tuple/DoubleBinding.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62 &nbsp;<A HREF="DoubleBinding.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64   <!--
65   if(window==top) {
66     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67   }
68   //-->
69 </SCRIPT>
70 <NOSCRIPT>
71   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.bind.tuple</FONT>
92 <BR>
93 Class DoubleBinding</H2>
94 <PRE>
95 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">com.sleepycat.bind.tuple.TupleBase</A>&lt;E&gt;
97       <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">com.sleepycat.bind.tuple.TupleBinding</A>&lt;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&gt;
98           <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bind.tuple.DoubleBinding</B>
99 </PRE>
100 <DL>
101 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&gt;</DD>
102 </DL>
103 <HR>
104 <DL>
105 <DT><PRE>public class <B>DoubleBinding</B><DT>extends <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A>&lt;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&gt;</DL>
106 </PRE>
107
108 <P>
109 A concrete <code>TupleBinding</code> for an unsorted <code>Double</code>
110  primitive wrapper or an unsorted <code>double</code> primitive.
111
112  <p>There are two ways to use this class:</p>
113  <ol>
114  <li>When using the <A HREF="../../../../com/sleepycat/db/package-summary.html"><CODE>com.sleepycat.db</CODE></A> package directly, the static
115  methods in this class can be used to convert between primitive values and
116  <A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db"><CODE>DatabaseEntry</CODE></A> objects.</li>
117  <li>When using the <A HREF="../../../../com/sleepycat/collections/package-summary.html"><CODE>com.sleepycat.collections</CODE></A> package, an instance of
118  this class can be used with any stored collection.  The easiest way to
119  obtain a binding instance is with the <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)"><CODE>TupleBinding.getPrimitiveBinding(java.lang.Class<T>)</CODE></A> method.</li>
120  </ol>
121 <P>
122
123 <P>
124 <DL>
125 <DT><B>See Also:</B><DD><a href="package-summary.html#floatFormats">Floating Point Formats</a></DL>
126 <HR>
127
128 <P>
129
130 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
131
132 <A NAME="constructor_summary"><!-- --></A>
133 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136 <B>Constructor Summary</B></FONT></TH>
137 </TR>
138 <TR BGCOLOR="white" CLASS="TableRowColor">
139 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html#DoubleBinding()">DoubleBinding</A></B>()</CODE>
140
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
143 </TR>
144 </TABLE>
145 &nbsp;
146 <!-- ========== METHOD SUMMARY =========== -->
147
148 <A NAME="method_summary"><!-- --></A>
149 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
150 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
151 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
152 <B>Method Summary</B></FONT></TH>
153 </TR>
154 <TR BGCOLOR="white" CLASS="TableRowColor">
155 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156 <CODE>static&nbsp;void</CODE></FONT></TD>
157 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html#doubleToEntry(double, com.sleepycat.db.DatabaseEntry)">doubleToEntry</A></B>(double&nbsp;val,
158               <A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</CODE>
159
160 <BR>
161 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a simple <code>double</code> value into an entry buffer.</TD>
162 </TR>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE>static&nbsp;double</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html#entryToDouble(com.sleepycat.db.DatabaseEntry)">entryToDouble</A></B>(<A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</CODE>
167
168 <BR>
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts an entry buffer into a simple <code>double</code> value.</TD>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A></CODE></FONT></TD>
174 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">entryToObject</A></B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A>&nbsp;input)</CODE>
175
176 <BR>
177 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a key or data object from a <A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> entry.</TD>
178 </TR>
179 <TR BGCOLOR="white" CLASS="TableRowColor">
180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181 <CODE>protected &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A></CODE></FONT></TD>
182 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html#getTupleOutput(java.lang.Double)">getTupleOutput</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&nbsp;object)</CODE>
183
184 <BR>
185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an empty TupleOutput instance that will be used by the tuple
186  binding or key creator.</TD>
187 </TR>
188 <TR BGCOLOR="white" CLASS="TableRowColor">
189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190 <CODE>&nbsp;void</CODE></FONT></TD>
191 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html#objectToEntry(java.lang.Double, com.sleepycat.bind.tuple.TupleOutput)">objectToEntry</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&nbsp;object,
192               <A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A>&nbsp;output)</CODE>
193
194 <BR>
195 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a key or data object to a tuple entry.</TD>
196 </TR>
197 </TABLE>
198 &nbsp;<A NAME="methods_inherited_from_class_com.sleepycat.bind.tuple.TupleBinding"><!-- --></A>
199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
201 <TH ALIGN="left"><B>Methods inherited from class com.sleepycat.bind.tuple.<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A></B></TH>
202 </TR>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD><CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)">getPrimitiveBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></CODE></TD>
205 </TR>
206 </TABLE>
207 &nbsp;<A NAME="methods_inherited_from_class_com.sleepycat.bind.tuple.TupleBase"><!-- --></A>
208 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
209 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
210 <TH ALIGN="left"><B>Methods inherited from class com.sleepycat.bind.tuple.<A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">TupleBase</A></B></TH>
211 </TR>
212 <TR BGCOLOR="white" CLASS="TableRowColor">
213 <TD><CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#entryToInput(com.sleepycat.db.DatabaseEntry)">entryToInput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#getTupleBufferSize()">getTupleBufferSize</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#inputToEntry(com.sleepycat.bind.tuple.TupleInput, com.sleepycat.db.DatabaseEntry)">inputToEntry</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#newOutput()">newOutput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#newOutput(byte[])">newOutput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#outputToEntry(com.sleepycat.bind.tuple.TupleOutput, com.sleepycat.db.DatabaseEntry)">outputToEntry</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)">setTupleBufferSize</A></CODE></TD>
214 </TR>
215 </TABLE>
216 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
217 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
218 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
219 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
220 </TR>
221 <TR BGCOLOR="white" CLASS="TableRowColor">
222 <TD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
223 </TR>
224 </TABLE>
225 &nbsp;
226 <P>
227
228 <!-- ========= CONSTRUCTOR DETAIL ======== -->
229
230 <A NAME="constructor_detail"><!-- --></A>
231 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
232 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
233 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
234 <B>Constructor Detail</B></FONT></TH>
235 </TR>
236 </TABLE>
237
238 <A NAME="DoubleBinding()"><!-- --></A><H3>
239 DoubleBinding</H3>
240 <PRE>
241 public <B>DoubleBinding</B>()</PRE>
242 <DL>
243 </DL>
244
245 <!-- ============ METHOD DETAIL ========== -->
246
247 <A NAME="method_detail"><!-- --></A>
248 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
249 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
250 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
251 <B>Method Detail</B></FONT></TH>
252 </TR>
253 </TABLE>
254
255 <A NAME="entryToObject(com.sleepycat.bind.tuple.TupleInput)"><!-- --></A><H3>
256 entryToObject</H3>
257 <PRE>
258 public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A> <B>entryToObject</B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A>&nbsp;input)</PRE>
259 <DL>
260 <DD><B>Description copied from class: <CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">TupleBinding</A></CODE></B></DD>
261 <DD>Constructs a key or data object from a <A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> entry.
262 <P>
263 <DD><DL>
264 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">entryToObject</A></CODE> in class <CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A>&lt;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&gt;</CODE></DL>
265 </DD>
266 <DD><DL>
267 <DT><B>Parameters:</B><DD><CODE>input</CODE> - is the tuple key or data entry.
268 <DT><B>Returns:</B><DD>the key or data object constructed from the entry.</DL>
269 </DD>
270 </DL>
271 <HR>
272
273 <A NAME="objectToEntry(java.lang.Double, com.sleepycat.bind.tuple.TupleOutput)"><!-- --></A><H3>
274 objectToEntry</H3>
275 <PRE>
276 public void <B>objectToEntry</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&nbsp;object,
277                           <A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A>&nbsp;output)</PRE>
278 <DL>
279 <DD><B>Description copied from class: <CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(E, com.sleepycat.bind.tuple.TupleOutput)">TupleBinding</A></CODE></B></DD>
280 <DD>Converts a key or data object to a tuple entry.
281 <P>
282 <DD><DL>
283 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(E, com.sleepycat.bind.tuple.TupleOutput)">objectToEntry</A></CODE> in class <CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A>&lt;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&gt;</CODE></DL>
284 </DD>
285 <DD><DL>
286 <DT><B>Parameters:</B><DD><CODE>object</CODE> - is the key or data object.<DD><CODE>output</CODE> - is the tuple entry to which the key or data should be
287  written.</DL>
288 </DD>
289 </DL>
290 <HR>
291
292 <A NAME="getTupleOutput(java.lang.Double)"><!-- --></A><H3>
293 getTupleOutput</H3>
294 <PRE>
295 protected <A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A> <B>getTupleOutput</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&nbsp;object)</PRE>
296 <DL>
297 <DD><B>Description copied from class: <CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#getTupleOutput(E)">TupleBase</A></CODE></B></DD>
298 <DD>Returns an empty TupleOutput instance that will be used by the tuple
299  binding or key creator.
300
301  <p>The default implementation of this method creates a new TupleOutput
302  with an initial buffer size that can be changed using the <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)"><CODE>TupleBase.setTupleBufferSize(int)</CODE></A> method.</p>
303
304  <p>This method may be overridden to return a TupleOutput instance.  For
305  example, an instance per thread could be created and returned by this
306  method.  If a TupleOutput instance is reused, be sure to call its
307  <A HREF="../../../../com/sleepycat/util/FastOutputStream.html#reset()"><CODE>FastOutputStream.reset()</CODE></A> method before each
308  use.</p>
309 <P>
310 <DD><DL>
311 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#getTupleOutput(E)">getTupleOutput</A></CODE> in class <CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">TupleBase</A>&lt;<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>&gt;</CODE></DL>
312 </DD>
313 <DD><DL>
314 <DT><B>Parameters:</B><DD><CODE>object</CODE> - is the object to be written to the tuple output, and may
315  be used by subclasses to determine the size of the output buffer.
316 <DT><B>Returns:</B><DD>an empty TupleOutput instance.<DT><B>See Also:</B><DD><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)"><CODE>TupleBase.setTupleBufferSize(int)</CODE></A></DL>
317 </DD>
318 </DL>
319 <HR>
320
321 <A NAME="entryToDouble(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
322 entryToDouble</H3>
323 <PRE>
324 public static double <B>entryToDouble</B>(<A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</PRE>
325 <DL>
326 <DD>Converts an entry buffer into a simple <code>double</code> value.
327 <P>
328 <DD><DL>
329 <DT><B>Parameters:</B><DD><CODE>entry</CODE> - is the source entry buffer.
330 <DT><B>Returns:</B><DD>the resulting value.</DL>
331 </DD>
332 </DL>
333 <HR>
334
335 <A NAME="doubleToEntry(double, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
336 doubleToEntry</H3>
337 <PRE>
338 public static void <B>doubleToEntry</B>(double&nbsp;val,
339                                  <A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</PRE>
340 <DL>
341 <DD>Converts a simple <code>double</code> value into an entry buffer.
342 <P>
343 <DD><DL>
344 <DT><B>Parameters:</B><DD><CODE>val</CODE> - is the source value.<DD><CODE>entry</CODE> - is the destination entry buffer.</DL>
345 </DD>
346 </DL>
347 <!-- ========= END OF CLASS DATA ========= -->
348 <HR>
349
350
351 <!-- ======= START OF BOTTOM NAVBAR ====== -->
352 <A NAME="navbar_bottom"><!-- --></A>
353 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
354 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
355 <TR>
356 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
357 <A NAME="navbar_bottom_firstrow"><!-- --></A>
358 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
359   <TR ALIGN="center" VALIGN="top">
360   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
361   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
362   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
363   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DoubleBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
364   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
365   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
366   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
367   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
368   </TR>
369 </TABLE>
370 </TD>
371 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
372 <b>Berkeley DB</b><br><font size="-1"> version 5.3.21</font></EM>
373 </TD>
374 </TR>
375
376 <TR>
377 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
378 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/CharacterBinding.html" title="class in com.sleepycat.bind.tuple"><B>PREV CLASS</B></A>&nbsp;
379 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/FloatBinding.html" title="class in com.sleepycat.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD>
380 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
381   <A HREF="../../../../index.html?com/sleepycat/bind/tuple/DoubleBinding.html" target="_top"><B>FRAMES</B></A>  &nbsp;
382 &nbsp;<A HREF="DoubleBinding.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
383 &nbsp;<SCRIPT type="text/javascript">
384   <!--
385   if(window==top) {
386     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
387   }
388   //-->
389 </SCRIPT>
390 <NOSCRIPT>
391   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
392 </NOSCRIPT>
393
394
395 </FONT></TD>
396 </TR>
397 <TR>
398 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
399   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
400 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
401 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
402 </TR>
403 </TABLE>
404 <A NAME="skip-navbar_bottom"></A>
405 <!-- ======== END OF BOTTOM NAVBAR ======= -->
406
407 <HR>
408 <font size=1>Copyright (c) 1996, 2012 Oracle and/or its affiliates.  All rights reserved.</font>
409 </BODY>
410 </HTML>