All Known Subinterfaces:
GuavaValidators

public interface GuavaRequireThat
Creates validators for the Guava API that throw exceptions immediately on validation failure.
  • Method Summary

    Modifier and Type
    Method
    Description
    <K, V, T extends Multimap<K, V>>
    MultimapValidator<T,K,V>
    requireThat(T value, String name)
    Validates the state of a Multimap.
  • Method Details

    • requireThat

      <K, V, T extends Multimap<K, V>> MultimapValidator<T,K,V> requireThat(T value, String name)
      Validates the state of a Multimap.

      The returned validator throws an exception immediately if a validation fails.

      Type Parameters:
      K - the type of keys in the Multimap
      V - the type of values in the Multimap
      T - the type of the Multimap
      Parameters:
      value - the value
      name - the name of the value
      Returns:
      a validator for the value
      Throws:
      NullPointerException - if name is null
      IllegalArgumentException - if name contains whitespace, or is empty