*/
public static class LastSeenHost {
/**
- * State of a record:
- *
- * STATIC = was manually entered and should not be removed
- * DYNAMIC = was discovered via multicast announcement or new connection and can be removed
+ * State of a record.
*/
- public static enum STATE {STATIC, DYNAMIC}
+ public static enum STATE {
+ /**
+ * was manually entered and should not be removed
+ */
+ STATIC,
+ /**
+ * was discovered via multicast announcement or new connection and can be removed
+ */
+ DYNAMIC
+ }
public final STATE state;
public final long timeInMillis;
/**
*
- * @param service
- * @return
+ * @param service the service required
+ * @return true if service is in the map
*/
public boolean containsService(String service) {
return this._serviceToAddressMap.containsKey(service);