Re: What methods should go into a java.util.Objects class in JDK 7?

2009-11-14 Thread David Holmes - Sun Microsystems
Paul, Paul Benedict said the following on 11/15/09 11:28: I would like to propose adding this method: /** * Selects the object if not {...@code null}; otherwise fallsback to the * specified default object. * * @param object the object to test * @param defaultObject the default object * @r

Re: What methods should go into a java.util.Objects class in JDK 7?

2009-11-14 Thread Paul Benedict
I would like to propose adding this method: /** * Selects the object if not {...@code null}; otherwise fallsback to the * specified default object. * * @param object the object to test * @param defaultObject the default object * @return the object if not {...@code null}; otherwise the defaul