Package media.barney.contract


@NullMarked package media.barney.contract
Declarative contract annotations and rendering extension points for application code.

Use this package to annotate supported program elements and customize how masked values appear in generated violation messages.

Contract annotations express programming invariants rather than user-input validation rules. Parameter contracts are preconditions, method-level contracts on non-void methods are postconditions, field annotations are reusable metadata, and annotation-type usage enables custom composed contracts. For object values, built-in semantic contracts ignore null; use nullness-specific tooling when null must be rejected.

  • Class
    Description
    Namespace and meta-annotation for declarative Java contracts.
    Requires a numeric value to fall within the configured range.
    Marks a value as confidential for generated violation messages.
    Requires a numeric value to be less than zero.
    Requires a numeric value to be greater than or equal to zero.
    Requires a numeric value to be less than or equal to zero.
    Requires a character sequence to contain non-whitespace content when non-null.
    Requires a character sequence, collection, map, or array value to be non-empty when non-null.
    Requires a character sequence to match the configured regular expression when non-null.
    Requires a numeric value to be greater than zero.
    Requires a character sequence, collection, map, or array value size to be in range when non-null.
    Core module marker for the contract framework.
    Conservative mask renderer that never reveals anything about the original value.
    Renders confidential values for generated contract violation messages.