{"id":20083484,"url":"https://github.com/mause/guava_preconditions","last_synced_at":"2025-05-06T01:31:23.907Z","repository":{"id":37026468,"uuid":"415281661","full_name":"Mause/guava_preconditions","owner":"Mause","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-27T23:02:37.000Z","size":49,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T03:13:05.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/guava_preconditions","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mause.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-09T10:53:02.000Z","updated_at":"2021-10-23T15:50:03.000Z","dependencies_parsed_at":"2024-10-28T00:17:46.326Z","dependency_job_id":"4dc65346-0b02-4b3f-be60-a5979e95db37","html_url":"https://github.com/Mause/guava_preconditions","commit_stats":{"total_commits":22,"total_committers":4,"mean_commits":5.5,"dds":0.2727272727272727,"last_synced_commit":"2fa79789c828411f8c7bf313e611c6932ca50507"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Fguava_preconditions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Fguava_preconditions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Fguava_preconditions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mause%2Fguava_preconditions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mause","download_url":"https://codeload.github.com/Mause/guava_preconditions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224479522,"owners_count":17318290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-13T15:47:22.863Z","updated_at":"2024-11-13T15:47:23.716Z","avatar_url":"https://github.com/Mause.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# guava_preconditions\n\nThis library provides some simple functions from guava\n\n\u003c!-- docs follow --\u003e\n\n# Module guava_preconditions\n\n## Functions\n\n`checkArgument(expression: bool, errorMessageTemplate: Optional[str] = None, *errorMessageArgs: Any) ‑\u003e None`\n: Ensures the truth of an expression involving one or more parameters to the calling method.\n\n`checkElementIndex(index: int, size: int, desc: str = None) ‑\u003e int`\n: Ensures that index specifies a valid element in an array, list or string of size size.\n\n`checkNotNull(reference: Optional[~T], errorMessageTemplate: str, *errorMessageArgs: Any) ‑\u003e ~T`\n: Ensures that an object reference passed as a parameter to the calling method is not null.\n\n`checkPositionIndex(index: int, size: int, desc: str = None) ‑\u003e int`\n: Ensures that index specifies a valid position in an array, list or string of size size.\n\n`checkPositionIndexes(start: int, end: int, size: int) ‑\u003e None`\n: Ensures that start and end specify a valid positions in an array, list or string of size size, and are in order.\n\n`checkState(expression: bool, errorMessageTemplate: str = None, *errorMessageArgs: Any) ‑\u003e None`\n: Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.\n\n## Classes\n\n`IllegalArgumentException(*args, **kwargs)`\n: Common base class for all non-exit exceptions.\n\n    ### Ancestors (in MRO)\n\n    * builtins.Exception\n    * builtins.BaseException\n\n`IllegalStateException(*args, **kwargs)`\n: Common base class for all non-exit exceptions.\n\n    ### Ancestors (in MRO)\n\n    * builtins.Exception\n    * builtins.BaseException\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmause%2Fguava_preconditions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmause%2Fguava_preconditions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmause%2Fguava_preconditions/lists"}