Cleaned up git
[iotcloud.git] / version1 / src / js / iotjs / src / pair.js
diff --git a/version1/src/js/iotjs/src/pair.js b/version1/src/js/iotjs/src/pair.js
new file mode 100644 (file)
index 0000000..e2467e3
--- /dev/null
@@ -0,0 +1,32 @@
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var Pair = function () {
+  function Pair(a, b) {
+    _classCallCheck(this, Pair);
+
+    this.a = a;
+    this.b = b;
+  }
+
+  _createClass(Pair, [{
+    key: 'getFirst',
+    value: function getFirst() {
+      return this.a;
+    }
+  }, {
+    key: 'getSecond',
+    value: function getSecond() {
+      return this.b;
+    }
+  }, {
+    key: 'toString',
+    value: function toString() {
+      var str = '<' + this.a + ',' + this.b + '>';
+      return str;
+    }
+  }]);
+
+  return Pair;
+}();
\ No newline at end of file