ternärer Operator in Java für Nullprüfung

String value = object != null ? object.getValue() : null;
Nice Newt