summaryrefslogtreecommitdiff
path: root/src/alden/PeerInformation.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-03-05 00:33:40 +0000
committerJesse Morgan <jesse@jesterpm.net>2011-03-05 00:33:40 +0000
commit5f27758d3a3543253019f558d8f672c5e8b71c2b (patch)
tree4a33121be9b11b9cb9584b56c99ec0c22b22d394 /src/alden/PeerInformation.java
parent6a4d24f95534d05aa526eb4b057397edcfc05067 (diff)
Changed name of alden to common
Diffstat (limited to 'src/alden/PeerInformation.java')
-rw-r--r--src/alden/PeerInformation.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/alden/PeerInformation.java b/src/alden/PeerInformation.java
deleted file mode 100644
index 3d94f11..0000000
--- a/src/alden/PeerInformation.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package alden;
-import java.io.*;
-import java.net.*;
-
-public class PeerInformation implements Serializable {
- private static final long serialVersionUID = 3667108226485766929L;
- public static final String DEFAULT_ID = "something unique";
-
- public InetAddress address;
- public int port;
- public PeerCoordinates location;
- public String id;
-
- public PeerInformation() {
- id = DEFAULT_ID;
- }
-
- public PeerInformation(PeerInformation other) {
- this(other.address, other.port, other.location);
- }
-
- public PeerInformation(InetAddress address, int port, PeerCoordinates location) {
- this();
- this.address = address;
- this.port = port;
- this.location = location;
- }
-
- public String toString() {
- return address + ":" + port + " @ " + location;
- }
-
- public boolean equals(Object other) {
- if (!(other instanceof PeerInformation))
- return false;
-
- return location.equals(((PeerInformation)other).location);
- }
-}