18 package org.turro.jpa.entity;
20 import java.util.Collection;
21 import java.util.Objects;
22 import org.turro.collections.CollectionUtil;
31 if(entity ==
null)
return false;
33 return !e.isNew() && Objects.equals(e.entityId(), entity.entityId());
38 return super.remove(e -> {
44 return super.remove(e -> {
50 return super.contains(e -> Objects.equals(e.entityId(), o.
entityId()));
63 return new EntityCollections(CollectionUtil.from((Collection<Object>) values).<Collection<IDaoEntity>>cast());
static EntityCollections entities(Collection values)
boolean contains(IDaoEntity o)
boolean remove(IDaoEntity entity)
boolean replace(IDaoEntity o)
EntityCollections(Collection< IDaoEntity > values)