Java Object Value Of valueOf(Object object)

Here you can find the source of valueOf(Object object)

Description

The String value of an Object

This method calls String#valueOf(Object) unless the object is null, in which case null is returned

License

Open Source License

Parameter

Parameter Description
object The object

Return

String value or null

Declaration

public static String valueOf(Object object) 

Method Source Code

//package com.java2s;
//  are made available under the terms of the Eclipse Public License v1.0

public class Main {
    /** The String value of an Object
     * <p>This method calls {@link String#valueOf(Object)} unless the object is null,
     * in which case null is returned</p>
     * @param object The object/* w  w w.  j a v  a 2s  . c om*/
     * @return String value or null
     */
    public static String valueOf(Object object) {
        return object == null ? null : String.valueOf(object);
    }
}

Related

  1. valueOf(Object o)
  2. valueOf(Object o)
  3. valueOf(Object obj)
  4. valueOf(Object obj)
  5. valueOf(Object obj)
  6. valueOf(Object value)
  7. valueOf(Object[] array)
  8. valueOf(Object[] oarray)