Package com.brightcove.player.util
Class NumberUtil
java.lang.Object
com.brightcove.player.util.NumberUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
safeLongToInt
(long l) Helper method for converting the long values from the ExoPlayer into ints that will work with the Brightcove SDK.
-
Constructor Details
-
NumberUtil
public NumberUtil()
-
-
Method Details
-
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
-