Java Object to String objectToString(Object obj)

Here you can find the source of objectToString(Object obj)

Description

object To String

License

Apache License

Declaration

public static String objectToString(Object obj) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String objectToString(Object obj) {
        return objectToString(obj, null);
    }/*  w w w .j  a  v a  2  s  . c om*/

    public static String objectToString(Object obj, String added) {
        String result = added;
        if (obj != null) {
            result = String.valueOf(obj);
        }
        return result;
    }
}

Related

  1. objectToString(Object o)
  2. objectToString(Object o)
  3. objectToString(Object o)
  4. objectToString(Object o, boolean quoteStrings)
  5. objectToString(Object obj)
  6. objectToString(Object obj)
  7. objectToString(Object obj)
  8. objectToString(Object obj, String defaultvalue)
  9. objectToString(Object object)