Class NumberUtil


  • public class NumberUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int safeLongToInt​(long l)
      Helper method for converting the long values from the ExoPlayer into ints that will work with the Brightcove SDK.
      • Methods inherited from class java.lang.Object

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

      • NumberUtil

        public NumberUtil()
    • Method Detail

      • safeLongToInt

        public static int safeLongToInt​(long l)
        Helper method for converting the long values from the ExoPlayer into ints that will work with the Brightcove SDK.
        Parameters:
        l - the long value to be converted.
        Returns:
        the safely converted long value as an integer, or -1 if the value can not be safely converted