Package com.brightcove.player.util
Class NumberUtil
- java.lang.Object
-
- com.brightcove.player.util.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.
-
-
-
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 Integer.MIN_VALUE if the input value can not be safely converted
-
-