@SuppressWarnings("unchecked")
  public static boolean dispatchable(Object obj) {
    if (obj == null) {
      return false;
    }
    return obj instanceof PrettyLoggable ||
      obj instanceof Map ||
      obj instanceof Dictionary ||
      obj instanceof Iterable ||
      obj.getClass().isArray();
  }
@ SuppressWarnings ( "unchecked" ) public static boolean dispatchable ( Object obj ) { if ( obj == null ) { return false ; } return obj instanceof PrettyLoggable || obj instanceof Map || obj instanceof Dictionary || obj instanceof Iterable || obj . getClass ( ) . isArray ( ) ; }
Returns true if an object has special logic for pretty logging (e.g.
implements PrettyLoggable). If so, we ask it to pretty log itself. If not,
we can safely use its toString() in logs.
@param obj The object to test
@return true if the object is dispatchable