Deleted Redundent Files
[iotcloud.git] / src / js / iotjs / src / pair.js
1 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; }; }();
2
3 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
5 var Pair = function () {
6   function Pair(a, b) {
7     _classCallCheck(this, Pair);
8
9     this.a = a;
10     this.b = b;
11   }
12
13   _createClass(Pair, [{
14     key: 'getFirst',
15     value: function getFirst() {
16       return this.a;
17     }
18   }, {
19     key: 'getSecond',
20     value: function getSecond() {
21       return this.b;
22     }
23   }, {
24     key: 'toString',
25     value: function toString() {
26       var str = '<' + this.a + ',' + this.b + '>';
27       return str;
28     }
29   }]);
30
31   return Pair;
32 }();