mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Add TypedCloneable
This commit is contained in:
parent
429af3b642
commit
e85c1881d7
4 changed files with 42 additions and 5 deletions
|
@ -18,6 +18,7 @@ package org.jivesoftware.smackx.disco.packet;
|
|||
|
||||
import org.jivesoftware.smack.packet.IQ;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smack.util.TypedCloneable;
|
||||
import org.jivesoftware.smack.util.XmlStringBuilder;
|
||||
import org.jxmpp.util.XmppStringUtils;
|
||||
|
||||
|
@ -38,7 +39,7 @@ import java.util.Set;
|
|||
*
|
||||
* @author Gaston Dombiak
|
||||
*/
|
||||
public class DiscoverInfo extends IQ implements Cloneable {
|
||||
public class DiscoverInfo extends IQ implements TypedCloneable<DiscoverInfo> {
|
||||
|
||||
public static final String ELEMENT = QUERY_ELEMENT;
|
||||
public static final String NAMESPACE = "http://jabber.org/protocol/disco#info";
|
||||
|
@ -266,7 +267,7 @@ public class DiscoverInfo extends IQ implements Cloneable {
|
|||
* attributes.
|
||||
*
|
||||
*/
|
||||
public static class Identity implements Comparable<Identity>, Cloneable {
|
||||
public static class Identity implements Comparable<Identity>, TypedCloneable<Identity> {
|
||||
|
||||
private final String category;
|
||||
private final String type;
|
||||
|
@ -473,7 +474,7 @@ public class DiscoverInfo extends IQ implements Cloneable {
|
|||
* as well as specific feature types of interest, if any (e.g., for the purpose of feature
|
||||
* negotiation).
|
||||
*/
|
||||
public static class Feature implements Cloneable {
|
||||
public static class Feature implements TypedCloneable<Feature> {
|
||||
|
||||
private final String variable;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue