Class AdBreakMapper

  • All Implemented Interfaces:
    Function2<com.brightcove.iabparser.vmap.AdBreak,​java.lang.Long,​AdBreak>

    public class AdBreakMapper
    extends java.lang.Object
    implements Function2<com.brightcove.iabparser.vmap.AdBreak,​java.lang.Long,​AdBreak>
    Maps an com.brightcove.iabparser.vmap.AdBreak to an AdBreak.
    • Constructor Summary

      Constructors 
      Constructor Description
      AdBreakMapper​(long contentLength, long payloadLength)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AdBreak apply​(com.brightcove.iabparser.vmap.AdBreak vastAdBreak, java.lang.Long adsOffset)
      Converts I1, I2 to O.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdBreakMapper

        public AdBreakMapper​(long contentLength,
                             long payloadLength)
    • Method Detail

      • apply

        @NonNull
        public AdBreak apply​(@NonNull
                             com.brightcove.iabparser.vmap.AdBreak vastAdBreak,
                             @NonNull
                             java.lang.Long adsOffset)
                      throws java.lang.Exception
        Description copied from interface: Function2
        Converts I1, I2 to O.
        Specified by:
        apply in interface Function2<com.brightcove.iabparser.vmap.AdBreak,​java.lang.Long,​AdBreak>
        Parameters:
        vastAdBreak - First input
        adsOffset - Second input
        Returns:
        output of type O
        Throws:
        java.lang.Exception