com.brightcove.ssai.ad

## Class AdBreakMapper

- java.lang.Object
- - com.brightcove.ssai.ad.AdBreakMapper

- All Implemented Interfaces:
    Function2<com.brightcove.iab.vmap.AdBreak,java.lang.Long,AdBreak>

      public class AdBreakMapper
      extends java.lang.Object
      implements Function2<com.brightcove.iab.vmap.AdBreak,java.lang.Long,AdBreak>

  Maps an com.brightcove.iab.vmap.AdBreak to an `AdBreak`.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdBreakMapper(long contentLength, long payloadLength)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AdBreak` | `apply(com.brightcove.iab.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.iab.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.iab.vmap.AdBreak,java.lang.Long,AdBreak>`
      Parameters:
        `vastAdBreak` - First input
        `adsOffset` - Second input
      Returns:
        output of type O
      Throws:
        `java.lang.Exception`