Class AdBreakMapper

java.lang.Object
com.brightcove.ssai.ad.AdBreakMapper
All Implemented Interfaces:
Function2<com.brightcove.iabparser.vmap.AdBreak,Long,AdBreak>

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

    • AdBreakMapper

      public AdBreakMapper(long contentLength, long payloadLength)
  • Method Details

    • apply

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