Operador ternario en Java para cheques nulos

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