Package org.apache.pinot.spi.utils
Class BooleanUtils
- java.lang.Object
-
- org.apache.pinot.spi.utils.BooleanUtils
-
public class BooleanUtils extends Object
-
-
Method Summary
Modifier and Type Method Description static booleantoBoolean(Object booleanObject)static booleantoBoolean(String booleanString)Returns the boolean value for the given boolean string.static inttoInt(String booleanString)Returns the int value (1 for true, 0 for false) for the given boolean string.
-
-
-
Method Detail
-
toBoolean
public static boolean toBoolean(String booleanString)
Returns the boolean value for the given boolean string.- 'true', '1' (internal representation) -> true
- Others -> false
-
toBoolean
public static boolean toBoolean(Object booleanObject)
-
toInt
public static int toInt(String booleanString)
Returns the int value (1 for true, 0 for false) for the given boolean string.- 'true', '1' (internal representation) -> '1'
- Others -> '0'
-
-