close

Filter

loading table of contents...

CoreMedia Content Cloud v11 Upgrade Guide / Version 2110

Table Of Contents

6.2.6 Removal of Consumer, Function, Predicate and Related Classes

The following deprecated classes have been deleted from the Java API:

  • com.coremedia.common.util.Consumer, com.coremedia.common.util.Function

  • com.coremedia.common.util.Predicate

All usages have been replaced with the according JDK classes of package java.util.function. The APIs of the consumer and the function classes are identical.

If you have implemented own consumers or functions, you only have to change the implements clauses from com.coremedia.common.util.[Consumer|Function] to java.util.function.[Consumer|Function].

If you have own predicates, you must change the implements clause and rename the include method to test.

The deprecated Functions and Consumers utility classes from the same package have also been deleted, since they make no sense without the actual classes, and were trivial anyway. The Predicates class still exists, but has been deprecated and usages can be replaced as described in its API documentation.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.