/** * Check if this entity contains all of the given properties. * * @param properties Names of the properties * @return True, if and only if the given properties are present in this entity */ public boolean hasProperties(String... properties) { for (String property : properties) { if (!hasProperty(property)) { return false; } } return true; }
/** * Check if this entity contains all of the given properties. * * @param properties Names of the properties * @return True, if and only if the given properties are present in this entity */ public boolean hasProperties(String... properties) { for (String property : properties) { if (!hasProperty(property)) { return false; } } return true; }