com.bluecatcode.common.base.IsEmpty Maven / Gradle / Ivy
package com.bluecatcode.common.base;
/**
* Single Method Interface for objects with capability of being empty
*/
public interface IsEmpty {
/**
* Returns true if object is "empty", it can be any of:
*
* - object is null
*
- object's length or size is 0
*
- object is "empty", as in it doesn't contain any useful data
*
*
* @return true if object is empty, otherwise false
*/
boolean isEmpty();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy