We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ccc3ce commit d1dc669Copy full SHA for d1dc669
src/com/rabbitmq/utility/SensibleClone.java
@@ -30,6 +30,12 @@
30
//
31
package com.rabbitmq.utility;
32
33
+/**
34
+ * This interface exists as a workaround for the annoyingness of java.lang.Cloneable.
35
+ * It is used for generic methods which need to accept something they can actually clone
36
+ * (Object.clone is protected and java.lang.Cloneable does not define a public clone method)
37
+ * and want to provide some guarantees of the type of the cloned object.
38
+ */
39
public interface SensibleClone<T extends SensibleClone<T>> extends Cloneable {
40
public T sensibleClone();
41
}
0 commit comments