Java Object to String objectToString(Object o)

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

Description

object To String

License

Open Source License

Parameter

Parameter Description
o a parameter

Return

%s {instance of: %s}

Declaration

static String objectToString(Object o) 

Method Source Code

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

public class Main {
    /**//from   www  . j a  v a  2  s.  c  o  m
     * @param o
     * @return %s {instance of: %s}
     */
    static String objectToString(Object o) {
        return String.format("%s {instance of: %s}", o, o.getClass());
    }
}

Related

  1. objectToString(final Object value)
  2. objectToString(Object a_Object)
  3. objectToString(Object in)
  4. objectToString(Object in, boolean ignoreNull)
  5. objectToString(Object o)
  6. objectToString(Object o)
  7. objectToString(Object o, boolean quoteStrings)
  8. objectToString(Object obj)
  9. objectToString(Object obj)