"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
const HederaId_1 = require("../../../domain/context/shared/HederaId");
class CheckStrings {
    static isNotEmpty(value) {
        if (!value)
            return false;
        if (value.length == 0)
            return false;
        return true;
    }
    static isLengthUnder(value, maxLength) {
        if (value.length > maxLength)
            return false;
        return true;
    }
    static isLength(value, length) {
        if (value.length != length)
            return false;
        return true;
    }
    static isLengthBetween(value, min, max) {
        if (value.length > max || value.length < min)
            return false;
        return true;
    }
    static isAccountId(value) {
        try {
            HederaId_1.HederaId.from(value);
            return true;
        }
        catch (err) {
            return false;
        }
    }
}
exports.default = CheckStrings;
