Giter VIP home page Giter VIP logo

guava_preconditions's Introduction

guava_preconditions

This library provides some simple functions from guava

Module guava_preconditions

Functions

checkArgument(expression: bool, errorMessageTemplate: Optional[str] = None, *errorMessageArgs: Any) ‑> None : Ensures the truth of an expression involving one or more parameters to the calling method.

checkElementIndex(index: int, size: int, desc: str = None) ‑> int : Ensures that index specifies a valid element in an array, list or string of size size.

checkNotNull(reference: Optional[~T], errorMessageTemplate: str, *errorMessageArgs: Any) ‑> ~T : Ensures that an object reference passed as a parameter to the calling method is not null.

checkPositionIndex(index: int, size: int, desc: str = None) ‑> int : Ensures that index specifies a valid position in an array, list or string of size size.

checkPositionIndexes(start: int, end: int, size: int) ‑> None : Ensures that start and end specify a valid positions in an array, list or string of size size, and are in order.

checkState(expression: bool, errorMessageTemplate: str = None, *errorMessageArgs: Any) ‑> None : Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.

Classes

IllegalArgumentException(*args, **kwargs) : Common base class for all non-exit exceptions.

### Ancestors (in MRO)

* builtins.Exception
* builtins.BaseException

IllegalStateException(*args, **kwargs) : Common base class for all non-exit exceptions.

### Ancestors (in MRO)

* builtins.Exception
* builtins.BaseException

guava_preconditions's People

Contributors

example123 avatar mause avatar pre-commit-ci[bot] avatar renovate-bot avatar

guava_preconditions's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/update_readme.yaml
  • actions/checkout v2
  • actions/setup-python v2
  • abatilo/actions-poetry v2.1.4
  • technote-space/create-pr-action v2
poetry
pyproject.toml
  • mypy ^0.910
  • pytest ^6.2.5
  • pre-commit ^2.15.0
  • pdoc3 ^0.10.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.