Better Checks

The Better Checks library aims to provide a lightweight and concise, but powerful way for precondition checking, in particular for method arguments.

Лицензия

Лицензия

MIT License
Группа

Группа

ch.trick17.better-checks
Идентификатор

Идентификатор

better-checks
Последняя версия

Последняя версия

1.1
Дата

Дата

Тип

Тип

pom
Описание

Описание

Better Checks
The Better Checks library aims to provide a lightweight and concise, but powerful way for precondition checking, in particular for method arguments.
Ссылка на сайт

Ссылка на сайт

http://better-checks.trick17.ch
Организация-разработчик

Организация-разработчик

Michael Faes
Система контроля версий

Система контроля версий

https://github.com/rolve/better-checks

Скачать better-checks

Имя Файла Размер
better-checks-1.1.pom 7 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/ch.trick17.better-checks/better-checks/ -->
<dependency>
    <groupId>ch.trick17.better-checks</groupId>
    <artifactId>better-checks</artifactId>
    <version>1.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/ch.trick17.better-checks/better-checks/
implementation 'ch.trick17.better-checks:better-checks:1.1'
// https://jarcasting.com/artifacts/ch.trick17.better-checks/better-checks/
implementation ("ch.trick17.better-checks:better-checks:1.1")
'ch.trick17.better-checks:better-checks:pom:1.1'
<dependency org="ch.trick17.better-checks" name="better-checks" rev="1.1">
  <artifact name="better-checks" type="pom" />
</dependency>
@Grapes(
@Grab(group='ch.trick17.better-checks', module='better-checks', version='1.1')
)
libraryDependencies += "ch.trick17.better-checks" % "better-checks" % "1.1"
[ch.trick17.better-checks/better-checks "1.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • core
  • core-gwt

Better Checks build status

The Better Checks library provides a lightweight and concise, but powerful way for precodition checking in Java, in particular for method arguments. Checks are written in a fluent way.

Examples:

Check.that(name).matches("hello .*!").hasLengthBetween(0, 20);
Check.that(list).isNullOr().hasSize(0);
Check.that(args).named("arguments").isNotEmpty();

The actual checking methods, such as matches(...) or hasSize(...), all throw an exception if the check fails. The exact type of exception depends on the kind of check that is called but in most cases it is IllegalArgumentException.

Project Website

For more information, visit the project's website:

http://better-checks.trick17.ch

Версии библиотеки

Версия
1.1
1.0