java.lang.Object
de.agilecoders.wicket.core.util.Models
#### Description
helper class for
IModel handling.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNullOrEmpty(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 ```
-
Method Details
-
isNullOrEmpty
#### 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
-