public static Boolean isTrueBinaryString(String value)
{
if(!STRING_FALSE.equals(value) && !STRING_TRUE.equals(value))) {
throw new IllegalArgumentException("Value must be `0` or `1`.");
}
return STRING_TRUE.equals(value);
}
String strFalse = new String("0");
String strTrue = new String("1");