{"id":15490341,"url":"https://github.com/myconsciousness/precondition-validator","last_synced_at":"2026-05-02T13:33:10.269Z","repository":{"id":50026929,"uuid":"298475317","full_name":"myConsciousness/precondition-validator","owner":"myConsciousness","description":"The Precondition Validator provides a variety of easy and intuitive validation functions. The features in this package will free you from simple and redundant checking processes.","archived":false,"fork":false,"pushed_at":"2021-06-06T00:22:11.000Z","size":1133,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-19T09:17:40.415Z","etag":null,"topics":["gradle","java","library","package","precondition-validator","preconditions","utility","validation","validator"],"latest_commit_sha":null,"homepage":"https://myconsciousness.github.io/precondition-validator/org/thinkit/common/Preconditions.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myConsciousness.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2020-09-25T05:22:00.000Z","updated_at":"2021-06-06T00:18:20.000Z","dependencies_parsed_at":"2022-07-30T18:18:04.044Z","dependency_job_id":null,"html_url":"https://github.com/myConsciousness/precondition-validator","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/myConsciousness/precondition-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fprecondition-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fprecondition-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fprecondition-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fprecondition-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myConsciousness","download_url":"https://codeload.github.com/myConsciousness/precondition-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myConsciousness%2Fprecondition-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32536576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gradle","java","library","package","precondition-validator","preconditions","utility","validation","validator"],"created_at":"2024-10-02T07:20:35.967Z","updated_at":"2026-05-02T13:33:10.250Z","avatar_url":"https://github.com/myConsciousness.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build](https://img.shields.io/badge/Build-Automated-2980b9.svg?style=for-the-badge)\n![Latest Version](https://img.shields.io/badge/Latest_Version-v1.1.1-27ae60.svg?style=for-the-badge)\n![License](https://img.shields.io/badge/License-Apache_2.0-e74c3c.svg?style=for-the-badge)\u003c/br\u003e\n![Java CI with Gradle](https://github.com/myConsciousness/precondition-validator/workflows/Java%20CI%20with%20Gradle/badge.svg?branch=master)\n\n# 1. Precondition Validator\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**\n\n- [1.1. What is it?](#11-what-is-it)\n- [1.2. Benefits](#12-benefits)\n- [1.3. How To Use](#13-how-to-use)\n  - [1.3.1. Add the dependencies](#131-add-the-dependencies)\n  - [1.3.2. Add an import for **_Preconditions_**](#132-add-an-import-for-_preconditions_)\n  - [1.3.3. Define preconditions](#133-define-preconditions)\n- [1.4. License](#14-license)\n- [1.5. More Information](#15-more-information)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## 1.1. What is it?\n\n**_Make your software more robust by defining clear preconditions!_**\n\n`Precondition Validator` provides several features to ensure that the parameters and data passed at the start of the process meet the preconditions.\n\nUsing the `Precondition Validator` features, you can safely and easily specify preconditions at the start of the process.\n\n## 1.2. Benefits\n\n- No need to write a redundant validation process for preconditions\n- Tested and secure validation process\n- Easy and intuitive operation\n\n## 1.3. How To Use\n\n### 1.3.1. Add the dependencies\n\n\u003e **_Note:_**\u003cbr\u003e\n\u003e Replace version you want to use. Check the latest [Packages](https://github.com/myConsciousness/precondition-validator/packages).\u003cbr\u003e\n\u003e Please contact me for a token to download the package.\n\n**_Maven_**\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.thinkit.common\u003c/groupId\u003e\n  \u003cartifactId\u003eprecondition-validator\u003c/artifactId\u003e\n  \u003cversion\u003ev1.1.1\u003c/version\u003e\n\u003c/dependency\u003e\n\n\u003cservers\u003e\n  \u003cserver\u003e\n    \u003cid\u003egithub\u003c/id\u003e\n    \u003cusername\u003emyConsciousness\u003c/username\u003e\n    \u003cpassword\u003exxxxxxxxxxxxxxxxxx\u003c/password\u003e\n  \u003c/server\u003e\n\u003c/servers\u003e\n```\n\n**_Gradle_**\n\n```gradle\nrepositories {\n    maven {\n        name = \"GitHubPackages\"\n        url = uri(\"https://maven.pkg.github.com/myConsciousness/precondition-validator\")\n        credentials {\n          username = \"myConsciousness\"\n          password = \"xxxxxxxxxxxxxxxxxx\"\n        }\n    }\n}\n\ndependencies {\n    implementation 'org.thinkit.common:precondition-validator:v1.1.1'\n}\n```\n\n### 1.3.2. Add an import for [**_Preconditions_**](https://myconsciousness.github.io/precondition-validator/org/thinkit/common/base/precondition/Preconditions.html)\n\n```java\nimport org.thinkit.common.base.precondition.Preconditions;\n```\n\n### 1.3.3. Define preconditions\n\nThe following is an example using [Preconditions#requireNonEmpty(Object[])](\u003chttps://myconsciousness.github.io/precondition-validator/org/thinkit/common/base/precondition/Preconditions.html#requireNonEmpty(java.lang.Object[])\u003e) and [Preconditions#requireNonEmpty(String)](\u003chttps://myconsciousness.github.io/precondition-validator/org/thinkit/common/base/precondition/Preconditions.html#requireNonEmpty(java.lang.String)\u003e).\n\n\u003e **_Note:_**\u003c/br\u003e\n\u003e The reference for all validation methods is [here](https://myconsciousness.github.io/precondition-validator/org/thinkit/common/base/precondition/Preconditions.html).\n\n```java\nimport org.thinkit.common.base.precondition.Preconditions;\n\npublic class DemoPreconditions {\n\n     /**\n      * Entry point for app that are expected to be given a non-empty string...\n      */\n     public static void main(String[] args) {\n          // Validate that args is not an empty array\n          // and that args[0] is not an empty string.\n          Preconditions.requireNonEmpty(args);\n          Preconditions.requireNonEmpty(args[0]);\n     }\n}\n```\n\n## 1.4. License\n\n```\nCopyright 2020 Kato Shinya.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\nin compliance with the License. You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License\nis distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\nor implied. See the License for the specific language governing permissions and limitations under\nthe License.\n```\n\n## 1.5. More Information\n\n`Precondition Validator` was designed and implemented by Kato Shinya, who works as a freelance developer.\n\nRegardless of the means or content of communication, I would love to hear from you if you have any questions or concerns. I do not check my email box very often so a response may be delayed, anyway thank you for your interest!\n\n- [Creator Profile](https://github.com/myConsciousness)\n- [Creator Website](https://myconsciousness.github.io/)\n- [License](https://github.com/myConsciousness/precondition-validator/blob/master/LICENSE)\n- [Release Note](https://github.com/myConsciousness/precondition-validator/releases)\n- [Package](https://github.com/myConsciousness/precondition-validator/packages)\n- [File a Bug](https://github.com/myConsciousness/precondition-validator/issues)\n- [Reference](https://myconsciousness.github.io/precondition-validator/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyconsciousness%2Fprecondition-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyconsciousness%2Fprecondition-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyconsciousness%2Fprecondition-validator/lists"}