19 package org.turro.occurrence;
21 import java.util.List;
22 import java.util.stream.Collectors;
23 import org.turro.jpa.Dao;
24 import org.turro.jpa.DaoTransaction;
36 return list ==
null ? 0 : list.size();
42 .filter(t ->
getValue(t).equals(value)).collect(Collectors.toList());
55 transaction.saveObject(e);
64 transaction.remove(e);
83 protected abstract void setValue(E value, String newValue);
abstract void setValue(E value, String newValue)
void changeOccurrences(String newValue)
boolean hasOccurrences(String value)
abstract String getValue(E value)
abstract List< E > getOccurrences(String value)