summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/base/StartStopper.java')
-rwxr-xr-xsrc/com/isode/stroke/base/StartStopper.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/com/isode/stroke/base/StartStopper.java b/src/com/isode/stroke/base/StartStopper.java
new file mode 100755
index 0000000..3f66ce9
--- /dev/null
+++ b/src/com/isode/stroke/base/StartStopper.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2010 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+/*
+ * Copyright (c) 2015 Tarun Gupta.
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+package com.isode.stroke.base;
+
+import com.isode.stroke.network.Timer;
+import com.isode.stroke.base.StartStoppable;
+
+public class StartStopper<T extends StartStoppable> {
+
+ private T target;
+
+ public StartStopper(T target) {
+ this.target = target;
+ target.start();
+ }
+} \ No newline at end of file