Class ChannelToElementConverter

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.Object,​java.lang.Object>

    public class ChannelToElementConverter
    extends java.lang.Object
    implements java.util.function.Function<java.lang.Object,​java.lang.Object>
    Provides Functions to convert from Element to Channel and back. Also has some static convenience functions to facilitate conversion.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelToElementConverter​(java.util.function.Function<java.lang.Object,​java.lang.Object> function)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object apply​(java.lang.Object t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • DIRECT_1_TO_1

        public static final ChannelToElementConverter DIRECT_1_TO_1
        Converts directly 1-to-1 between Channel and Element.
    • Constructor Detail

      • ChannelToElementConverter

        public ChannelToElementConverter​(java.util.function.Function<java.lang.Object,​java.lang.Object> function)
    • Method Detail

      • apply

        public java.lang.Object apply​(java.lang.Object t)
        Specified by:
        apply in interface java.util.function.Function<java.lang.Object,​java.lang.Object>