package com.tvd12.ezyfox.database.service;

import java.util.Optional;

public interface EzyFindByField<E> {

    E findByField(String field, Object value);

    default Optional<E> findByFieldOptional(String field, Object value) {
        return Optional.ofNullable(findByField(field, value));
    }

    default boolean containsByField(String field, String value) {
        return findByField(field, value) != null;
    }
}

@@ -345,22 +345,22 @@
  field, 
-String
+Object
  value) 

add contains methods