adam-mcneilly
02/07/2019, 2:56 PMShawn
02/07/2019, 2:57 PMadam-mcneilly
02/07/2019, 2:57 PMShawn
02/07/2019, 2:58 PM==
is identityadam-mcneilly
02/07/2019, 3:00 PMShawn
02/07/2019, 3:00 PMadam-mcneilly
02/07/2019, 3:01 PMconfig.isTransparentToolbar() == Boolean.TRUE
will not crash if it's null. Thanks for all the help.karelpeeters
02/07/2019, 6:44 PMjava.lang.Boolean
isn't a proper "dualton", you can create new instances: https://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html#Boolean(boolean)Boolean(true) != Boolean.TRUE
:java:Shawn
02/07/2019, 6:44 PMkarelpeeters
02/07/2019, 6:45 PMadam-mcneilly
02/07/2019, 7:28 PMShawn
02/07/2019, 7:29 PMBoolean.TRUE.equals(config.isTransparentToolbar())
if I had to guessBoolean
to uslouiscad
02/07/2019, 7:33 PMBoolean
boxes are cached… because there's only two values to cache. For other primitives (numbers), all values that cover Byte
(-128 to 127) are cached, at least on Android.karelpeeters
02/07/2019, 7:33 PMBoolean.valueOf(x)
is cached, Boolean(x)
can't be.adam-mcneilly
02/07/2019, 8:56 PMkarelpeeters
02/07/2019, 8:56 PMadam-mcneilly
02/07/2019, 9:01 PM