Replace interface with the one in java.util.function.* where possible

Description

Some interfaces in OGM have been introduced before the switch to JDK 8 but they have a counterpart in the package java.util.function.*:

org.hibernate.ogm.dialect.spi.ModelConsumer -> Consumer
org.hibernate.ogm.dialect.spi.TupleSupplier -> Supplier or Function (not sure)

Others?
Somebody should have a look and check if we can update them

Environment

None

Assignee

Sergey Chernolyas

Reporter

Davide D'Alto

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure