summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSteve <steveb9@u.washington.edu>2011-03-06 09:51:07 +0000
committerSteve <steveb9@u.washington.edu>2011-03-06 09:51:07 +0000
commitb172409a18162e865f2bcc3267295f90d76adf6a (patch)
tree7eaabf30fee4da94b2d75f536c6794e577d0b8d0 /src/common
parente08c18092cdf16c72d8488574ed926e42c4e332d (diff)
Forgot to change a couple of Y's to Zs
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