ConnectionEstablishedEvent*: add missing javadoc
authorEddie <dev@fun2be.me>
Sat, 6 Jun 2015 08:31:57 +0000 (09:31 +0100)
committerEddie <dev@fun2be.me>
Sat, 6 Jun 2015 09:36:10 +0000 (10:36 +0100)
src/uk/ac/ntu/n0521366/wsyd/libs/net/ConnectionEstablishedEvent.java
src/uk/ac/ntu/n0521366/wsyd/libs/net/ConnectionEstablishedEventListener.java

index 9035a2c..78bb80a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * The MIT License
  *
- * Copyright 2015 eddie.
+ * Copyright 2015 Eddie Berrisford-Lynch <dev@fun2be.me>.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -26,18 +26,32 @@ package uk.ac.ntu.n0521366.wsyd.libs.net;
 import java.util.EventObject;
 
 /**
- *
- * @author eddie
+ * Dispatched when new (TCP) stream connections are established.
+ * 
+ * @author Eddie Berrisford-Lynch <dev@fun2be.me>
  */
 public class ConnectionEstablishedEvent extends EventObject {
-    
+    /**
+     * the network stream that has been created.
+     */
     private final NetworkStream _stream;
 
+    /**
+     * Create event object wrapping the new stream.
+     * 
+     * @param source the object dispatching the event
+     * @param stream the new stream
+     */
     public ConnectionEstablishedEvent(Object source, NetworkStream stream) {
         super(source);
         _stream = stream;
     }
     
+    /**
+     * Get the stream attached to the event.
+     * 
+     * @return the stream
+     */
     public NetworkStream getStream() {
         return _stream;
     }
index f099f2f..1e5841b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * The MIT License
  *
- * Copyright 2015 eddie.
+ * Copyright 2015 Eddie Berrisford-Lynch <dev@fun2be.me>.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -24,8 +24,8 @@
 package uk.ac.ntu.n0521366.wsyd.libs.net;
 
 /**
- *
- * @author eddie
+ * Implemented by classes that want to receive ConnectionEstablished events.
+ * @author Eddie Berrisford-Lynch <dev@fun2be.me>
  */
 public interface ConnectionEstablishedEventListener {
     public void connectionEstablished(ConnectionEstablishedEvent event);