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

Status

Assignee

Sergey Chernolyas

Reporter

Davide D'Alto

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major