From 97f432ee0c2189a2c540e365e37daa11d9a591b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 15 Apr 2010 11:10:11 +0200 Subject: [PATCH] Implement Identifiable interface where appropriate. --- src/main/java/net/pterodactylus/fcp/AllData.java | 2 +- src/main/java/net/pterodactylus/fcp/DataFound.java | 2 +- src/main/java/net/pterodactylus/fcp/EndListPeers.java | 2 +- src/main/java/net/pterodactylus/fcp/FCPPluginReply.java | 2 +- src/main/java/net/pterodactylus/fcp/FinishedCompression.java | 2 +- src/main/java/net/pterodactylus/fcp/GetFailed.java | 2 +- src/main/java/net/pterodactylus/fcp/IdentifierCollision.java | 2 +- src/main/java/net/pterodactylus/fcp/Peer.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentGet.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentPut.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentPutDir.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java | 2 +- src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java | 2 +- src/main/java/net/pterodactylus/fcp/PluginInfo.java | 2 +- src/main/java/net/pterodactylus/fcp/PutFailed.java | 2 +- src/main/java/net/pterodactylus/fcp/PutFetchable.java | 2 +- src/main/java/net/pterodactylus/fcp/PutSuccessful.java | 2 +- src/main/java/net/pterodactylus/fcp/SSKKeypair.java | 2 +- src/main/java/net/pterodactylus/fcp/SentFeed.java | 2 +- src/main/java/net/pterodactylus/fcp/SimpleProgress.java | 2 +- src/main/java/net/pterodactylus/fcp/StartedCompression.java | 2 +- src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java | 2 +- src/main/java/net/pterodactylus/fcp/URIGenerated.java | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/java/net/pterodactylus/fcp/AllData.java b/src/main/java/net/pterodactylus/fcp/AllData.java index d1541bf..ef427b1 100644 --- a/src/main/java/net/pterodactylus/fcp/AllData.java +++ b/src/main/java/net/pterodactylus/fcp/AllData.java @@ -31,7 +31,7 @@ import java.io.InputStream; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class AllData extends BaseMessage { +public class AllData extends BaseMessage implements Identifiable { /** The payload. */ private InputStream payloadInputStream; diff --git a/src/main/java/net/pterodactylus/fcp/DataFound.java b/src/main/java/net/pterodactylus/fcp/DataFound.java index 81318c1..68ea166 100644 --- a/src/main/java/net/pterodactylus/fcp/DataFound.java +++ b/src/main/java/net/pterodactylus/fcp/DataFound.java @@ -25,7 +25,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class DataFound extends BaseMessage { +public class DataFound extends BaseMessage implements Identifiable { /** * Creates a new “DataFound” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/EndListPeers.java b/src/main/java/net/pterodactylus/fcp/EndListPeers.java index c0cf82f..a854fa4 100644 --- a/src/main/java/net/pterodactylus/fcp/EndListPeers.java +++ b/src/main/java/net/pterodactylus/fcp/EndListPeers.java @@ -23,7 +23,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class EndListPeers extends BaseMessage { +public class EndListPeers extends BaseMessage implements Identifiable { /** * Creates a new “EndListPeers” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java b/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java index c3b5281..8ce892b 100644 --- a/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java +++ b/src/main/java/net/pterodactylus/fcp/FCPPluginReply.java @@ -29,7 +29,7 @@ import java.util.Map.Entry; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class FCPPluginReply extends BaseMessage { +public class FCPPluginReply extends BaseMessage implements Identifiable { /** The payload input stream. */ private final InputStream payloadInputStream; diff --git a/src/main/java/net/pterodactylus/fcp/FinishedCompression.java b/src/main/java/net/pterodactylus/fcp/FinishedCompression.java index 9d09d62..de9de9f 100644 --- a/src/main/java/net/pterodactylus/fcp/FinishedCompression.java +++ b/src/main/java/net/pterodactylus/fcp/FinishedCompression.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class FinishedCompression extends BaseMessage { +public class FinishedCompression extends BaseMessage implements Identifiable { /** * Creates a new “FinishedCompression” message that wraps the received diff --git a/src/main/java/net/pterodactylus/fcp/GetFailed.java b/src/main/java/net/pterodactylus/fcp/GetFailed.java index c01bf2b..f24bfcd 100644 --- a/src/main/java/net/pterodactylus/fcp/GetFailed.java +++ b/src/main/java/net/pterodactylus/fcp/GetFailed.java @@ -30,7 +30,7 @@ import java.util.Map.Entry; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class GetFailed extends BaseMessage { +public class GetFailed extends BaseMessage implements Identifiable { /** * Creates a new “GetFailed” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java b/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java index bc96a70..9cf4fd1 100644 --- a/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java +++ b/src/main/java/net/pterodactylus/fcp/IdentifierCollision.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class IdentifierCollision extends BaseMessage { +public class IdentifierCollision extends BaseMessage implements Identifiable { /** * Creates a new “IdentifierCollision” message that wraps the received diff --git a/src/main/java/net/pterodactylus/fcp/Peer.java b/src/main/java/net/pterodactylus/fcp/Peer.java index 3cfa856..f942393 100644 --- a/src/main/java/net/pterodactylus/fcp/Peer.java +++ b/src/main/java/net/pterodactylus/fcp/Peer.java @@ -28,7 +28,7 @@ import java.util.Map.Entry; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class Peer extends BaseMessage { +public class Peer extends BaseMessage implements Identifiable { /** * Creates a new “Peer” reply from the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PersistentGet.java b/src/main/java/net/pterodactylus/fcp/PersistentGet.java index 7489801..76a57fe 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentGet.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentGet.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PersistentGet extends BaseMessage { +public class PersistentGet extends BaseMessage implements Identifiable { /** * Creates a new “PersistentGet” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PersistentPut.java b/src/main/java/net/pterodactylus/fcp/PersistentPut.java index 383ea93..5119f11 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentPut.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentPut.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PersistentPut extends BaseMessage { +public class PersistentPut extends BaseMessage implements Identifiable { /** * Creates a new “PersistentPut” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java b/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java index 47c3d8d..e6bb26e 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentPutDir.java @@ -25,7 +25,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PersistentPutDir extends BaseMessage { +public class PersistentPutDir extends BaseMessage implements Identifiable { /** * Creates a new “PersistentPutDir” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java b/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java index ea8d1ac..2973639 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentRequestModified.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PersistentRequestModified extends BaseMessage { +public class PersistentRequestModified extends BaseMessage implements Identifiable { /** * Creates a new “PersistentRequestModified” message that wraps the received diff --git a/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java b/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java index 154c88c..5783470 100644 --- a/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java +++ b/src/main/java/net/pterodactylus/fcp/PersistentRequestRemoved.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PersistentRequestRemoved extends BaseMessage { +public class PersistentRequestRemoved extends BaseMessage implements Identifiable { /** * Creates a new “PersistentRequestRemoved” message that wraps the received diff --git a/src/main/java/net/pterodactylus/fcp/PluginInfo.java b/src/main/java/net/pterodactylus/fcp/PluginInfo.java index 84ddaea..46b5439 100644 --- a/src/main/java/net/pterodactylus/fcp/PluginInfo.java +++ b/src/main/java/net/pterodactylus/fcp/PluginInfo.java @@ -23,7 +23,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PluginInfo extends BaseMessage { +public class PluginInfo extends BaseMessage implements Identifiable { /** * Creates a new “PluginInfo” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PutFailed.java b/src/main/java/net/pterodactylus/fcp/PutFailed.java index b6916f4..2211dfc 100644 --- a/src/main/java/net/pterodactylus/fcp/PutFailed.java +++ b/src/main/java/net/pterodactylus/fcp/PutFailed.java @@ -30,7 +30,7 @@ import java.util.Map.Entry; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PutFailed extends BaseMessage { +public class PutFailed extends BaseMessage implements Identifiable { /** * Creates a new “PutFailed” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PutFetchable.java b/src/main/java/net/pterodactylus/fcp/PutFetchable.java index 0c4e941..4632566 100644 --- a/src/main/java/net/pterodactylus/fcp/PutFetchable.java +++ b/src/main/java/net/pterodactylus/fcp/PutFetchable.java @@ -25,7 +25,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PutFetchable extends BaseMessage { +public class PutFetchable extends BaseMessage implements Identifiable { /** * Creates a new “PutFetchable” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/PutSuccessful.java b/src/main/java/net/pterodactylus/fcp/PutSuccessful.java index cea36ee..7ce46da 100644 --- a/src/main/java/net/pterodactylus/fcp/PutSuccessful.java +++ b/src/main/java/net/pterodactylus/fcp/PutSuccessful.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class PutSuccessful extends BaseMessage { +public class PutSuccessful extends BaseMessage implements Identifiable { /** * Creates a new “PutSuccessful” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/SSKKeypair.java b/src/main/java/net/pterodactylus/fcp/SSKKeypair.java index fd0b40a..b0d4dc7 100644 --- a/src/main/java/net/pterodactylus/fcp/SSKKeypair.java +++ b/src/main/java/net/pterodactylus/fcp/SSKKeypair.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class SSKKeypair extends BaseMessage { +public class SSKKeypair extends BaseMessage implements Identifiable { /** * Creates a new “SSKKeypair” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/SentFeed.java b/src/main/java/net/pterodactylus/fcp/SentFeed.java index eb7ca0a..2169b21 100644 --- a/src/main/java/net/pterodactylus/fcp/SentFeed.java +++ b/src/main/java/net/pterodactylus/fcp/SentFeed.java @@ -23,7 +23,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class SentFeed extends BaseMessage { +public class SentFeed extends BaseMessage implements Identifiable { /** * Creates a new “SentFeed” message from the given FCP message. diff --git a/src/main/java/net/pterodactylus/fcp/SimpleProgress.java b/src/main/java/net/pterodactylus/fcp/SimpleProgress.java index 4d93512..f934057 100644 --- a/src/main/java/net/pterodactylus/fcp/SimpleProgress.java +++ b/src/main/java/net/pterodactylus/fcp/SimpleProgress.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class SimpleProgress extends BaseMessage { +public class SimpleProgress extends BaseMessage implements Identifiable { /** * Creates a new “SimpleProgress” message that wraps the received message. diff --git a/src/main/java/net/pterodactylus/fcp/StartedCompression.java b/src/main/java/net/pterodactylus/fcp/StartedCompression.java index a7c4fa2..34e1fdd 100644 --- a/src/main/java/net/pterodactylus/fcp/StartedCompression.java +++ b/src/main/java/net/pterodactylus/fcp/StartedCompression.java @@ -24,7 +24,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class StartedCompression extends BaseMessage { +public class StartedCompression extends BaseMessage implements Identifiable { /** * Creates a new “StartedCompression” message that wraps the received diff --git a/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java b/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java index e616b5d..fd72dd7 100644 --- a/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java +++ b/src/main/java/net/pterodactylus/fcp/SubscribedUSKUpdate.java @@ -27,7 +27,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class SubscribedUSKUpdate extends BaseMessage { +public class SubscribedUSKUpdate extends BaseMessage implements Identifiable { /** * Creates a new “SubscribedUSKUpdate” message that wraps the received diff --git a/src/main/java/net/pterodactylus/fcp/URIGenerated.java b/src/main/java/net/pterodactylus/fcp/URIGenerated.java index 06d3888..6b36f64 100644 --- a/src/main/java/net/pterodactylus/fcp/URIGenerated.java +++ b/src/main/java/net/pterodactylus/fcp/URIGenerated.java @@ -25,7 +25,7 @@ package net.pterodactylus.fcp; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class URIGenerated extends BaseMessage { +public class URIGenerated extends BaseMessage implements Identifiable { /** * Creates a new “URIGenerated” message that wraps the received message. -- 2.7.4