java.lang.Object
de.agilecoders.wicket.core.util.Models

public final class Models extends Object
#### Description helper class for IModel handling.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    #### Description checks if given model is not null and string object is also not null or empty. #### Usage ```java Models.isNullOrEmpty(null); // = true Models.isNullOrEmpty(Model.of(null)); // = true Models.isNullOrEmpty(Model.of("")); // = true Models.isNullOrEmpty(Model.of("value")); // = false ```

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isNullOrEmpty

      public static boolean isNullOrEmpty(IModel<String> model)
      #### Description checks if given model is not null and string object is also not null or empty. #### Usage ```java Models.isNullOrEmpty(null); // = true Models.isNullOrEmpty(Model.of(null)); // = true Models.isNullOrEmpty(Model.of("")); // = true Models.isNullOrEmpty(Model.of("value")); // = false ```
      Parameters:
      model - The model to check
      Returns:
      true, if model is null or empty