Uploaded image for project: 'WildFly Common'
  1. WildFly Common
  2. WFCOM-71

Port Consumers.close() and Functions.identity() from org.wildfly:wildfly-clustering-common

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.6.1.Final
    • 1.6.0.Final
    • None
    • False
    • None
    • False

      Introduce 2 new methods to org.wildfly.common.function.Functions:

      1. <T extends AutoCloseable> Consumer<T> closingConsumer();
        Returns a consumer that quietly closes its argument, logging any exceptions.
      2. <T extends R, R> Function<T, R> identityFunction()
        A subclass permissive variant of java.util.Function.identity()

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: