"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
/*
 * Nutanix Networking APIs
 *
 * OpenAPI spec version: 4.0.1
 *
 * NOTE: This class is auto generated by the Open API Dev Platform.
 *
 * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
 *
 * Do not edit the class manually.
 *
 */
var ValidationUtils = exports["default"] = /*#__PURE__*/function () {
  function ValidationUtils() {
    _classCallCheck(this, ValidationUtils);
  }
  return _createClass(ValidationUtils, null, [{
    key: "validateMaximum",
    value: function validateMaximum(value, maximum) {
      return !(maximum === null || value > maximum);
    }
  }, {
    key: "validateMinimum",
    value: function validateMinimum(value, minimum) {
      return !(minimum === null || value < minimum);
    }
  }, {
    key: "validateExclusiveMaximum",
    value: function validateExclusiveMaximum(value, eMaximum) {
      return !(eMaximum === null || value > eMaximum);
    }
  }, {
    key: "validateExclusiveMinimum",
    value: function validateExclusiveMinimum(value, eMinimum) {
      return !(eMinimum === null || value > eMinimum);
    }
  }, {
    key: "validateMultipleOf",
    value: function validateMultipleOf(value, multipleOf) {
      return !(multipleOf === null || value % multipleOf === 0);
    }
  }, {
    key: "validateMaxLength",
    value: function validateMaxLength(value, maxLength) {
      return !(maxLength === null || value.length > maxLength);
    }
  }, {
    key: "validateMinLength",
    value: function validateMinLength(value, minLength) {
      return !(minLength === null || value.length < minLength);
    }
  }, {
    key: "validatePattern",
    value: function validatePattern(value, pattern) {
      return !(pattern === null || value.match(pattern) === null);
    }
  }, {
    key: "validateMaxItems",
    value: function validateMaxItems(value, maxItems) {
      return !(maxItems === null || value.length > maxItems);
    }
  }, {
    key: "validateMinItems",
    value: function validateMinItems(value, minItems) {
      return !(minItems === null || value.length < minItems);
    }
  }, {
    key: "validateUniqueItems",
    value: function validateUniqueItems(value, uniqueItems) {
      return !(uniqueItems === null || !uniqueItems || value.length !== new Set(value).size);
    }
  }]);
}();