Skip navigation links
A C D E G H I M N O R T U V 

A

ArgumentMatchers - Class in org.valid4j.matchers
Common convenience matchers for arguments
Assertive - Class in org.valid4j
Entry point for the global assertive policy.
ASSERTIVE_PROPERTY_NAME - Static variable in class org.valid4j.Assertive
 
AssertiveDefaultProvider - Class in org.valid4j.impl
Provider of default assertive policies for valid4j.
AssertiveDefaultProvider() - Constructor for class org.valid4j.impl.AssertiveDefaultProvider
 
AssertiveDisabledProvider - Class in org.valid4j.impl
An assertive policy provider that disables all checks and assertive handling
AssertiveDisabledProvider() - Constructor for class org.valid4j.impl.AssertiveDisabledProvider
 
AssertiveProvider - Interface in org.valid4j
Provider of assertive policies.

C

check(boolean, String, Object...) - Method in interface org.valid4j.CheckPolicy
 
check(Object, Matcher<?>) - Method in interface org.valid4j.CheckPolicy
 
check(boolean, String, Object...) - Method in class org.valid4j.impl.CheckingPolicy
 
check(Object, Matcher<?>) - Method in class org.valid4j.impl.CheckingPolicy
 
check(boolean, String, Object...) - Method in class org.valid4j.impl.NonCheckingPolicy
 
check(Object, Matcher<?>) - Method in class org.valid4j.impl.NonCheckingPolicy
 
CheckingPolicy - Class in org.valid4j.impl
An implementation of the assertive policy that checks the given conditions for violations.
CheckingPolicy(ViolationPolicy) - Constructor for class org.valid4j.impl.CheckingPolicy
 
CheckPolicy - Interface in org.valid4j
Policy for checking conditions.
ClassMatchers - Class in org.valid4j.matchers
Matchers for Class
ContractViolation - Error in org.valid4j.errors
Exception thrown to indicate that a contract violation have been detected.

D

DEFAULT_PROVIDER - Static variable in class org.valid4j.Assertive
 
describing(String, Object...) - Static method in class org.valid4j.Message
 
describingMismatchOf(Object, Matcher<?>) - Static method in class org.valid4j.Message
 
DISABLED - Static variable in class org.valid4j.Assertive
 
DISABLED_PROVIDER - Static variable in class org.valid4j.Assertive
 

E

ensure(boolean) - Static method in class org.valid4j.Assertive
Postcondition that supplier are supposed to ensure.
ensure(T, Matcher<?>) - Static method in class org.valid4j.Assertive
Postcondition that supplier are supposed to ensure.
ensure(boolean, String, Object...) - Static method in class org.valid4j.Assertive
Postcondition that supplier are supposed to ensure.
ensurePolicy() - Method in interface org.valid4j.AssertiveProvider
 
ensurePolicy() - Method in class org.valid4j.impl.AssertiveDefaultProvider
 
ensurePolicy() - Method in class org.valid4j.impl.AssertiveDisabledProvider
 
EnsureViolation - Error in org.valid4j.errors
Exception thrown to indicate that a programming error have been detected, on the suppliers part.
EnsureViolation(String) - Constructor for error org.valid4j.errors.EnsureViolation
 
EnsureViolationPolicy - Class in org.valid4j.impl
Policy for handling post-conditions by throwing a contract violation.
EnsureViolationPolicy(Queue<ContractViolation>) - Constructor for class org.valid4j.impl.EnsureViolationPolicy
 
exception(Class<X>) - Static method in class org.valid4j.ExceptionFactories
 
ExceptionFactories - Class in org.valid4j
 
ExceptionFactory<T extends Exception> - Interface in org.valid4j
Factory that constructs a recoverable exception given a string argument.
ExceptionNoArgumentFactory<T extends Exception> - Class in org.valid4j
Factory that constructs a recoverable exception given no argument.
ExceptionNoArgumentFactory(Constructor<T>) - Constructor for class org.valid4j.ExceptionNoArgumentFactory
 
ExceptionOneStringArgumentFactory<T extends Exception> - Class in org.valid4j
Factory that constructs a recoverable exception given a string argument.
ExceptionOneStringArgumentFactory(Constructor<T>) - Constructor for class org.valid4j.ExceptionOneStringArgumentFactory
 

G

getFirstTrackedViolations() - Static method in class org.valid4j.impl.AssertiveDefaultProvider
Get the first contract violations that have occurred in current process.

H

handleViolation(String) - Method in class org.valid4j.impl.EnsureViolationPolicy
 
handleViolation(String) - Method in class org.valid4j.impl.RequireViolationPolicy
 
handleViolation(String) - Method in interface org.valid4j.impl.ViolationPolicy
 

I

isAbstractClass() - Static method in class org.valid4j.matchers.ClassMatchers
 

M

Message - Class in org.valid4j
Class that represents a message, but builds the message first upon invocation of toString().
Message() - Constructor for class org.valid4j.Message
 

N

named(String, Matcher<T>) - Static method in class org.valid4j.matchers.ArgumentMatchers
Wraps an existing matcher, decorating its description with the name specified.
neverGetHere() - Static method in class org.valid4j.Assertive
Unreachable code have been reached.
neverGetHere(String) - Static method in class org.valid4j.Assertive
Unreachable code have been reached.
neverGetHere(String, Object...) - Static method in class org.valid4j.Assertive
Unreachable code have been reached.
neverGetHere(Throwable) - Static method in class org.valid4j.Assertive
Unexpected exception have been caught.
neverGetHere(Throwable, String, Object...) - Static method in class org.valid4j.Assertive
Unexpected exception have been caught.
neverGetHere(Throwable, String, Object...) - Method in class org.valid4j.impl.NeverGetHerePolicy
 
neverGetHere(Throwable, String, Object...) - Method in interface org.valid4j.UnreachablePolicy
 
neverGetHereError() - Static method in class org.valid4j.Assertive
Unreachable code have been reached.
neverGetHereError(String) - Static method in class org.valid4j.Assertive
Unreachable code have been reached.
neverGetHereError(String, Object...) - Static method in class org.valid4j.Assertive
Unreachable code have been reached.
neverGetHereError(Throwable) - Static method in class org.valid4j.Assertive
Unexpected exception have been caught.
neverGetHereError(Throwable, String, Object...) - Static method in class org.valid4j.Assertive
Unexpected exception have been caught.
neverGetHerePolicy() - Method in interface org.valid4j.AssertiveProvider
 
neverGetHerePolicy() - Method in class org.valid4j.impl.AssertiveDefaultProvider
 
neverGetHerePolicy() - Method in class org.valid4j.impl.AssertiveDisabledProvider
 
NeverGetHerePolicy - Class in org.valid4j.impl
Policy for handling unreachable code by throwing an unrecoverable exception.
NeverGetHerePolicy(Queue<ContractViolation>) - Constructor for class org.valid4j.impl.NeverGetHerePolicy
 
NeverGetHereViolation - Error in org.valid4j.errors
Exception being thrown to indicate that supposedly unreachable code have been reached, and that this is considered a programming error.
NeverGetHereViolation(Throwable, String) - Constructor for error org.valid4j.errors.NeverGetHereViolation
 
newInstance(String) - Method in interface org.valid4j.ExceptionFactory
 
newInstance(String) - Method in class org.valid4j.ExceptionNoArgumentFactory
 
newInstance(String) - Method in class org.valid4j.ExceptionOneStringArgumentFactory
 
NonCheckingPolicy - Class in org.valid4j.impl
An assertive policy that performs no checking at all.
NonCheckingPolicy() - Constructor for class org.valid4j.impl.NonCheckingPolicy
 
notEmptyString() - Static method in class org.valid4j.matchers.ArgumentMatchers
A matcher matching non-null and non-empty strings Example: assertThat("this is not an empty string", notEmptyString())

O

org.valid4j - package org.valid4j
Simple assertion and validation library
org.valid4j.errors - package org.valid4j.errors
Contract violation errors These errors are thrown to signal a programming error have been detected during runtime.
org.valid4j.impl - package org.valid4j.impl
Implementation package
org.valid4j.matchers - package org.valid4j.matchers
Hamcrest matchers
otherwiseThrowing(Class<X>) - Static method in class org.valid4j.Validation
 

R

require(boolean) - Static method in class org.valid4j.Assertive
Precondition that clients are required to fulfill.
require(T, Matcher<?>) - Static method in class org.valid4j.Assertive
Precondition that clients are required to fulfill.
require(boolean, String, Object...) - Static method in class org.valid4j.Assertive
Precondition that clients are required to fulfill.
requirePolicy() - Method in interface org.valid4j.AssertiveProvider
 
requirePolicy() - Method in class org.valid4j.impl.AssertiveDefaultProvider
 
requirePolicy() - Method in class org.valid4j.impl.AssertiveDisabledProvider
 
RequireViolation - Error in org.valid4j.errors
Exception thrown to indicate that a programming error have been detected, on the clients part.
RequireViolation(String) - Constructor for error org.valid4j.errors.RequireViolation
 
RequireViolationPolicy - Class in org.valid4j.impl
Policy for handling pre-conditions by throwing a contract violation.
RequireViolationPolicy(Queue<ContractViolation>) - Constructor for class org.valid4j.impl.RequireViolationPolicy
 

T

TrackingViolationPolicy - Class in org.valid4j.impl
A violation policy that tracks thrown contract violations
TrackingViolationPolicy(Queue<ContractViolation>) - Constructor for class org.valid4j.impl.TrackingViolationPolicy
 

U

UnreachablePolicy - Interface in org.valid4j
Policy for handling unreachable code

V

validate(boolean, X) - Static method in class org.valid4j.Validation
Validate the boolean expression that is supposed to be true.
validate(boolean, Class<X>) - Static method in class org.valid4j.Validation
Validate the boolean expression that is supposed to be true.
validate(boolean, ExceptionFactory<X>) - Static method in class org.valid4j.Validation
Validate the boolean expression that is supposed to be true.
validate(T, Matcher<?>, X) - Static method in class org.valid4j.Validation
Validate the given object that is supposed to satisfy the matcher.
validate(T, Matcher<?>, Class<X>) - Static method in class org.valid4j.Validation
Validate the given object that is supposed to satisfy the matcher.
validate(T, Matcher<?>, ExceptionFactory<X>) - Static method in class org.valid4j.Validation
Validate the given object that is supposed to satisfy the matcher.
validate(boolean) - Method in class org.valid4j.Validator
 
validate(boolean, String, Object...) - Method in class org.valid4j.Validator
 
validate(V, Matcher<?>) - Method in class org.valid4j.Validator
 
Validation - Class in org.valid4j
Entry point for validation methods.
Validator<T extends Exception> - Class in org.valid4j
 
Validator(ExceptionFactory<T>) - Constructor for class org.valid4j.Validator
 
validator(Class<X>) - Static method in class org.valid4j.Validator
 
ViolationPolicy - Interface in org.valid4j.impl
Policy for handling contract violations
A C D E G H I M N O R T U V 
Skip navigation links

Copyright © 2014–2015 valid4j. All rights reserved.