summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/esodata/DoubleSided.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/bjc/esodata/DoubleSided.java')
-rw-r--r--src/main/java/bjc/esodata/DoubleSided.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/bjc/esodata/DoubleSided.java b/src/main/java/bjc/esodata/DoubleSided.java
new file mode 100644
index 0000000..6ecbdcf
--- /dev/null
+++ b/src/main/java/bjc/esodata/DoubleSided.java
@@ -0,0 +1,24 @@
+package bjc.esodata;
+
+/**
+ * Interface for a double-sided object.
+ *
+ * @author bjculkin
+ *
+ */
+public interface DoubleSided {
+ /**
+ * Flips the object.
+ *
+ * The active side becomes inactive, and the inactive side becomes
+ * active.
+ */
+ void flip();
+
+ /**
+ * Check which side of the object is active;
+ *
+ * @return True if the front side is active, false otherwise.
+ */
+ boolean currentSide();
+}