summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Peer.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/Peer.java b/src/common/Peer.java
index eb23a30..14ca0b8 100644
--- a/src/common/Peer.java
+++ b/src/common/Peer.java
@@ -344,6 +344,15 @@ public class Peer extends Observable {
return minPeer;
}
+
+ /**
+ * Gets the size of peers in the list
+ *
+ * @param returns an int representing the number of peers
+ */
+ public int getPeerSize() {
+ return peers.size();
+ }
/**
* A method that sends a CollidableObject to all