Here you can find the source of valueOf(Object value)
1.License
Open Source LicenseParameter
Parameter | Description |
---|---|
value | a parameter |
public static String valueOf(Object value)
//package com.java2s; public class Main { /**//from w ww .ja v a 2 s.com * <pre> * 1. value is String: return value * 2. value is null: return null * 3. value is Object: return value.toString() * </pre> * @param value * @return * @author <a href="mailto:iffiff1@gmail.com">Tyler Chen</a> * @since 2014-8-23 */ public static String valueOf(Object value) { if (value == null) { return null; } if (value instanceof String) { return (String) value; } return value.toString(); } }