Java Object to String castToString(Object value)

Here you can find the source of castToString(Object value)

Description

cast To String

License

Open Source License

Declaration

public static String castToString(Object value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String castToString(Object value) {
        if (value == null) {
            return null;
        }// ww  w .  ja v  a  2 s  .c o m

        return value.toString();
    }
}

Related

  1. castString(Object obj)
  2. castString(Object obj, String defaultValue)
  3. castString(Object val)
  4. castToString(Object inValue)
  5. castToString(Object object)
  6. castToStringArray(Object[] array)
  7. objectToString(final Object value)
  8. objectToString(Object a_Object)
  9. objectToString(Object in)