Package org.fest.util

Class ToString

java.lang.Object
org.fest.util.ToString

public final class ToString extends Object
Obtains the toString representation of an object.
  • Constructor Details

    • ToString

      private ToString()
  • Method Details

    • toStringOf

      public static String toStringOf(Object o)
      Returns the toString representation of the given object. It may or not the object's own implementation of toString.
      Parameters:
      o - the given object.
      Returns:
      the toString representation of the given object.
    • toStringOf

      private static String toStringOf(Comparator<?> comparator)
    • toStringOf

      private static String toStringOf(Calendar c)
    • toStringOf

      private static String toStringOf(Class<?> c)
    • toStringOf

      private static String toStringOf(Collection<?> c)
    • toStringOf

      private static String toStringOf(Date d)
    • toStringOf

      private static String toStringOf(Float f)
    • toStringOf

      private static String toStringOf(Long l)
    • toStringOf

      private static String toStringOf(File f)
    • toStringOf

      private static String toStringOf(Map<?,?> m)