source: branches/objectmq_old/lib/rabbitmq-java-client-javadoc-3.0.1/com/rabbitmq/utility/SensibleClone.html

Last change on this file was 9, checked in by stoda, 12 years ago

First commit

File size: 8.8 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:09 GMT 2012 -->
6<TITLE>
7SensibleClone
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="SensibleClone";
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/utility/IntAllocator.html" title="class in com.rabbitmq.utility"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="../../../com/rabbitmq/utility/SingleShotLinearTimer.html" title="class in com.rabbitmq.utility"><B>NEXT CLASS</B></A></FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="../../../index.html?com/rabbitmq/utility/SensibleClone.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="SensibleClone.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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.utility</FONT>
91<BR>
92Interface SensibleClone&lt;T extends SensibleClone&lt;T&gt;&gt;</H2>
93<DL>
94<DT><B>All Superinterfaces:</B> <DD>java.lang.Cloneable</DD>
95</DL>
96<DL>
97<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/rabbitmq/client/AlreadyClosedException.html" title="class in com.rabbitmq.client">AlreadyClosedException</A>, <A HREF="../../../com/rabbitmq/client/ConsumerCancelledException.html" title="class in com.rabbitmq.client">ConsumerCancelledException</A>, <A HREF="../../../com/rabbitmq/client/ShutdownSignalException.html" title="class in com.rabbitmq.client">ShutdownSignalException</A></DD>
98</DL>
99<HR>
100<DL>
101<DT><PRE>public interface <B>SensibleClone&lt;T extends SensibleClone&lt;T&gt;&gt;</B><DT>extends java.lang.Cloneable</DL>
102</PRE>
103
104<P>
105This interface exists as a workaround for the annoyingness of java.lang.Cloneable.
106 It is used for generic methods which need to accept something they can actually clone
107 (Object.clone is protected and java.lang.Cloneable does not define a public clone method)
108 and want to provide some guarantees of the type of the cloned object.
109<P>
110
111<P>
112<HR>
113
114<P>
115
116<!-- ========== METHOD SUMMARY =========== -->
117
118<A NAME="method_summary"><!-- --></A>
119<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122<B>Method Summary</B></FONT></TH>
123</TR>
124<TR BGCOLOR="white" CLASS="TableRowColor">
125<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
126<CODE>&nbsp;<A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="type parameter in SensibleClone">T</A></CODE></FONT></TD>
127<TD><CODE><B><A HREF="../../../com/rabbitmq/utility/SensibleClone.html#sensibleClone()">sensibleClone</A></B>()</CODE>
128
129<BR>
130&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Like Object.clone but sensible; in particular, public and declared to return
131 the right type.</TD>
132</TR>
133</TABLE>
134&nbsp;
135<P>
136
137<!-- ============ METHOD DETAIL ========== -->
138
139<A NAME="method_detail"><!-- --></A>
140<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
143<B>Method Detail</B></FONT></TH>
144</TR>
145</TABLE>
146
147<A NAME="sensibleClone()"><!-- --></A><H3>
148sensibleClone</H3>
149<PRE>
150<A HREF="../../../com/rabbitmq/utility/SensibleClone.html" title="type parameter in SensibleClone">T</A> <B>sensibleClone</B>()</PRE>
151<DL>
152<DD>Like Object.clone but sensible; in particular, public and declared to return
153 the right type.
154<P>
155<DD><DL>
156</DL>
157</DD>
158<DD><DL>
159</DL>
160</DD>
161</DL>
162<!-- ========= END OF CLASS DATA ========= -->
163<HR>
164
165
166<!-- ======= START OF BOTTOM NAVBAR ====== -->
167<A NAME="navbar_bottom"><!-- --></A>
168<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
169<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
170<TR>
171<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
172<A NAME="navbar_bottom_firstrow"><!-- --></A>
173<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
174  <TR ALIGN="center" VALIGN="top">
175  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
176  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
177  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
178  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
179  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
180  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
181  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
182  </TR>
183</TABLE>
184</TD>
185<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
186</EM>
187</TD>
188</TR>
189
190<TR>
191<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
192&nbsp;<A HREF="../../../com/rabbitmq/utility/IntAllocator.html" title="class in com.rabbitmq.utility"><B>PREV CLASS</B></A>&nbsp;
193&nbsp;<A HREF="../../../com/rabbitmq/utility/SingleShotLinearTimer.html" title="class in com.rabbitmq.utility"><B>NEXT CLASS</B></A></FONT></TD>
194<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
195  <A HREF="../../../index.html?com/rabbitmq/utility/SensibleClone.html" target="_top"><B>FRAMES</B></A>  &nbsp;
196&nbsp;<A HREF="SensibleClone.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
197&nbsp;<SCRIPT type="text/javascript">
198  <!--
199  if(window==top) {
200    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
201  }
202  //-->
203</SCRIPT>
204<NOSCRIPT>
205  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
206</NOSCRIPT>
207
208
209</FONT></TD>
210</TR>
211<TR>
212<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
213  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
214<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
215DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
216</TR>
217</TABLE>
218<A NAME="skip-navbar_bottom"></A>
219<!-- ======== END OF BOTTOM NAVBAR ======= -->
220
221<HR>
222
223</BODY>
224</HTML>
Note: See TracBrowser for help on using the repository browser.