src/main/java/com/hedera/hashgraph/identity/utils/Validator.java
/**
   * Checks if required condition is true and if not adds the given error message to the list.
   *
   * @param condition    The condition to be met.
   * @param errorMessage The error message in case condition is not met.
   */
Checks if required condition is true and if not adds the given error message to the list.

@param condition    The condition to be met.
@param errorMessage The error message in case condition is not met.
Checks if required condition is true and if not adds the given error message to the list . @param condition The condition to be met . @param errorMessage The error message in case condition is not met .
public final void require(final boolean condition, final String errorMessage) {
    if (!condition) {
      addValidationError(errorMessage);
    }
  }
public final void require ( final boolean condition , final String errorMessage ) { if ( ! condition ) { addValidationError ( errorMessage ) ; } }
Checks if required condition is true and if not adds the given error message to the list.
Checks if required condition is true and if not adds the given error message to the list .