source: branches/objectmq-1.0/lib/rabbitmq-java-client-javadoc-3.0.1/com/rabbitmq/client/impl/Version.html

Last change on this file was 33, checked in by amoreno, 11 years ago

new release version

File size: 14.7 KB
Line 
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_18) on Tue Dec 11 11:47:11 GMT 2012 -->
6<TITLE>
7Version
8</TITLE>
9
10<META NAME="date" CONTENT="2012-12-11">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="Version";
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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47  </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51</EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/ValueWriter.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/WorkPool.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="../../../../index.html?com/rabbitmq/client/impl/Version.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="Version.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<SCRIPT type="text/javascript">
63  <!--
64  if(window==top) {
65    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66  }
67  //-->
68</SCRIPT>
69<NOSCRIPT>
70  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90com.rabbitmq.client.impl</FONT>
91<BR>
92Class Version</H2>
93<PRE>
94java.lang.Object
95  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rabbitmq.client.impl.Version</B>
96</PRE>
97<HR>
98<DL>
99<DT><PRE>public class <B>Version</B><DT>extends java.lang.Object</DL>
100</PRE>
101
102<P>
103Encapsulation of AMQP protocol version
104<P>
105
106<P>
107<HR>
108
109<P>
110
111<!-- ======== CONSTRUCTOR SUMMARY ======== -->
112
113<A NAME="constructor_summary"><!-- --></A>
114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117<B>Constructor Summary</B></FONT></TH>
118</TR>
119<TR BGCOLOR="white" CLASS="TableRowColor">
120<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#Version(int, int)">Version</A></B>(int&nbsp;major,
121        int&nbsp;minor)</CODE>
122
123<BR>
124&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>Version</code> instance.</TD>
125</TR>
126</TABLE>
127&nbsp;
128<!-- ========== METHOD SUMMARY =========== -->
129
130<A NAME="method_summary"><!-- --></A>
131<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
133<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
134<B>Method Summary</B></FONT></TH>
135</TR>
136<TR BGCOLOR="white" CLASS="TableRowColor">
137<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138<CODE>&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/Version.html" title="class in com.rabbitmq.client.impl">Version</A></CODE></FONT></TD>
139<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#adjust()">adjust</A></B>()</CODE>
140
141<BR>
142&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adjust a version for spec weirdness.</TD>
143</TR>
144<TR BGCOLOR="white" CLASS="TableRowColor">
145<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146<CODE>static&nbsp;boolean</CODE></FONT></TD>
147<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#checkVersion(com.rabbitmq.client.impl.Version, com.rabbitmq.client.impl.Version)">checkVersion</A></B>(<A HREF="../../../../com/rabbitmq/client/impl/Version.html" title="class in com.rabbitmq.client.impl">Version</A>&nbsp;clientVersion,
148             <A HREF="../../../../com/rabbitmq/client/impl/Version.html" title="class in com.rabbitmq.client.impl">Version</A>&nbsp;serverVersion)</CODE>
149
150<BR>
151&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check compatibility of a client and server version, from the
152 client's perspective.</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>&nbsp;boolean</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;o)</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>&nbsp;int</CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#getMajor()">getMajor</A></B>()</CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve the major version number.</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>&nbsp;int</CODE></FONT></TD>
173<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#getMinor()">getMinor</A></B>()</CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve the minor version number.</TD>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>&nbsp;int</CODE></FONT></TD>
181<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#hashCode()">hashCode</A></B>()</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
189<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/Version.html#toString()">toString</A></B>()</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve a String representation of the version in the standard
193 AMQP version format of <major>-<minor></TD>
194</TR>
195</TABLE>
196&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
197<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
199<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
200</TR>
201<TR BGCOLOR="white" CLASS="TableRowColor">
202<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
203</TR>
204</TABLE>
205&nbsp;
206<P>
207
208<!-- ========= CONSTRUCTOR DETAIL ======== -->
209
210<A NAME="constructor_detail"><!-- --></A>
211<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
212<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
213<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
214<B>Constructor Detail</B></FONT></TH>
215</TR>
216</TABLE>
217
218<A NAME="Version(int, int)"><!-- --></A><H3>
219Version</H3>
220<PRE>
221public <B>Version</B>(int&nbsp;major,
222               int&nbsp;minor)</PRE>
223<DL>
224<DD>Creates a new <code>Version</code> instance.
225<P>
226<DL>
227<DT><B>Parameters:</B><DD><CODE>major</CODE> - the AMQP major version number<DD><CODE>minor</CODE> - the AMQP minor version number</DL>
228</DL>
229
230<!-- ============ METHOD DETAIL ========== -->
231
232<A NAME="method_detail"><!-- --></A>
233<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
235<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
236<B>Method Detail</B></FONT></TH>
237</TR>
238</TABLE>
239
240<A NAME="getMajor()"><!-- --></A><H3>
241getMajor</H3>
242<PRE>
243public int <B>getMajor</B>()</PRE>
244<DL>
245<DD>Retrieve the major version number.
246<P>
247<DD><DL>
248
249<DT><B>Returns:</B><DD>the major version number</DL>
250</DD>
251</DL>
252<HR>
253
254<A NAME="getMinor()"><!-- --></A><H3>
255getMinor</H3>
256<PRE>
257public int <B>getMinor</B>()</PRE>
258<DL>
259<DD>Retrieve the minor version number.
260<P>
261<DD><DL>
262
263<DT><B>Returns:</B><DD>the minor version number</DL>
264</DD>
265</DL>
266<HR>
267
268<A NAME="toString()"><!-- --></A><H3>
269toString</H3>
270<PRE>
271public java.lang.String <B>toString</B>()</PRE>
272<DL>
273<DD>Retrieve a String representation of the version in the standard
274 AMQP version format of <major>-<minor>
275<P>
276<DD><DL>
277<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
278</DD>
279<DD><DL>
280
281<DT><B>Returns:</B><DD>a <code>String</code> representation of the version<DT><B>See Also:</B><DD><CODE>Object.toString()</CODE></DL>
282</DD>
283</DL>
284<HR>
285
286<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
287equals</H3>
288<PRE>
289public boolean <B>equals</B>(java.lang.Object&nbsp;o)</PRE>
290<DL>
291<DD><DL>
292<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
293</DD>
294<DD><DL>
295</DL>
296</DD>
297</DL>
298<HR>
299
300<A NAME="hashCode()"><!-- --></A><H3>
301hashCode</H3>
302<PRE>
303public int <B>hashCode</B>()</PRE>
304<DL>
305<DD><DL>
306<DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL>
307</DD>
308<DD><DL>
309</DL>
310</DD>
311</DL>
312<HR>
313
314<A NAME="adjust()"><!-- --></A><H3>
315adjust</H3>
316<PRE>
317public <A HREF="../../../../com/rabbitmq/client/impl/Version.html" title="class in com.rabbitmq.client.impl">Version</A> <B>adjust</B>()</PRE>
318<DL>
319<DD>Adjust a version for spec weirdness.
320
321 The AMQP 0-8 spec confusingly defines the version as 8-0. This
322 method maps the latter to the former.
323<P>
324<DD><DL>
325
326<DT><B>Returns:</B><DD>the adjusted <code>Version</code></DL>
327</DD>
328</DL>
329<HR>
330
331<A NAME="checkVersion(com.rabbitmq.client.impl.Version, com.rabbitmq.client.impl.Version)"><!-- --></A><H3>
332checkVersion</H3>
333<PRE>
334public static boolean <B>checkVersion</B>(<A HREF="../../../../com/rabbitmq/client/impl/Version.html" title="class in com.rabbitmq.client.impl">Version</A>&nbsp;clientVersion,
335                                   <A HREF="../../../../com/rabbitmq/client/impl/Version.html" title="class in com.rabbitmq.client.impl">Version</A>&nbsp;serverVersion)</PRE>
336<DL>
337<DD>Check compatibility of a client and server version, from the
338 client's perspective.
339<P>
340<DD><DL>
341<DT><B>Parameters:</B><DD><CODE>clientVersion</CODE> - the client <code>Version</code><DD><CODE>serverVersion</CODE> - the server <code>Version</code>
342<DT><B>Returns:</B><DD>a <code>boolean</code> value</DL>
343</DD>
344</DL>
345<!-- ========= END OF CLASS DATA ========= -->
346<HR>
347
348
349<!-- ======= START OF BOTTOM NAVBAR ====== -->
350<A NAME="navbar_bottom"><!-- --></A>
351<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
352<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
353<TR>
354<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
355<A NAME="navbar_bottom_firstrow"><!-- --></A>
356<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
357  <TR ALIGN="center" VALIGN="top">
358  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
359  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
360  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
361  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
362  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
363  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
364  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
365  </TR>
366</TABLE>
367</TD>
368<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
369</EM>
370</TD>
371</TR>
372
373<TR>
374<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
375&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/ValueWriter.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A>&nbsp;
376&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/WorkPool.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD>
377<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
378  <A HREF="../../../../index.html?com/rabbitmq/client/impl/Version.html" target="_top"><B>FRAMES</B></A>  &nbsp;
379&nbsp;<A HREF="Version.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
380&nbsp;<SCRIPT type="text/javascript">
381  <!--
382  if(window==top) {
383    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
384  }
385  //-->
386</SCRIPT>
387<NOSCRIPT>
388  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
389</NOSCRIPT>
390
391
392</FONT></TD>
393</TR>
394<TR>
395<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
396  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
397<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
398DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
399</TR>
400</TABLE>
401<A NAME="skip-navbar_bottom"></A>
402<!-- ======== END OF BOTTOM NAVBAR ======= -->
403
404<HR>
405
406</BODY>
407</HTML>
Note: See TracBrowser for help on using the repository browser.