'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _promise = require('babel-runtime/core-js/promise');

var _promise2 = _interopRequireDefault(_promise);

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Copyright (c) 2002-2018 "Neo4j,"
 * Neo4j Sweden AB [http://neo4j.com]
 *
 * This file is part of Neo4j.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var BaseHostNameResolver = function () {
  function BaseHostNameResolver() {
    (0, _classCallCheck3.default)(this, BaseHostNameResolver);
  }

  (0, _createClass3.default)(BaseHostNameResolver, [{
    key: 'resolve',
    value: function resolve() {
      throw new Error('Abstract function');
    }

    /**
     * @protected
     */

  }, {
    key: '_resolveToItself',
    value: function _resolveToItself(address) {
      return _promise2.default.resolve([address]);
    }
  }]);
  return BaseHostNameResolver;
}();

exports.default = BaseHostNameResolver;