Tests if the {@code toString} method of the given object is inherited
from {@code Object}.

@param pObject the object
@return {@code true} if toString of class Object
166908
private static boolean isIdentityToString(Object pObject) {
        try {
            Method toString = pObject.getClass().getMethod("toString");
            if (toString.getDeclaringClass() == Object.class) {
                return true;
            }
        }
        catch (Exception ignore) {
            // Ignore
        }

        return false;
    }
417859
public static boolean isConvertibleToPublisher(Object object) {
        if (object == null) {
            return false;
        }
        if (object instanceof Publisher) {
            return true;
        } else {
            return isConvertibleToPublisher(object.getClass());
        }
    }
1209524
public static String identityToString(Object pObject) {
        if (pObject == null) {
            return null;
        }
        else {
            return pObject.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(pObject));
        }
    }
228539
@SuppressWarnings({ "rawtypes", "unchecked" })
	public static String getObjectString(Object o) {

		if (isBasicType(o)) {
			return o.toString();
		} else if (o.getClass().isArray()) {
			return getArrayValue((Object[]) o);
		} else if (o instanceof Iterable) {
			Iterable itrPropertie = (Iterable) o;
			return getItrValue(itrPropertie);
		} else if (o instanceof Map) {
			return getOrderedMapString((Map) o);
		} else if (o instanceof Date) {
			return getTimestampValue((Date)o);
		} else {
			return getComlpexObjectOrderedString(o);
		}
	}
522181
public static boolean isPrimitive(Object obj) {
        boolean rv = obj.getClass().isPrimitive() || obj instanceof String || obj instanceof Integer
                || obj instanceof Long || obj instanceof Byte || obj instanceof Character || obj instanceof Boolean
                || obj instanceof Short || obj instanceof Float || obj instanceof Double || obj instanceof BigDecimal
                || obj instanceof BigInteger;
        return rv;
    }
285818
public static boolean isObject( Object obj ) {
      return !isNumber( obj ) && !isString( obj ) && !isBoolean( obj ) && !isArray( obj )
            && !isFunction( obj ) || isNull( obj );
   }
1367514
public boolean inherits(ASTType astType, ASTType inheritable) {
        if (astType == null) {
            return false;
        }
        if(inheritable == null || inheritable.equals(OBJECT_TYPE)){
            return true;
        }
        if (astType.equals(inheritable)) {
            return true;
        }
        for (ASTType typeInterfaces : astType.getInterfaces()) {
            if (inherits(typeInterfaces, inheritable)) {
                return true;
            }
        }
        return inherits(astType.getSuperClass(), inheritable);
    }
70791
public static boolean isArray (@Nullable final Object aObject)
  {
    return aObject != null && ClassHelper.isArrayClass (aObject.getClass ());
  }
778892
private boolean annotationEquals(Object object) {
        if (object == null 
                    || !(object instanceof Annotation) 
                    || !annotationType.equals(((Annotation) object).annotationType())) {
                     return false;
         }
        
        for (Map.Entry<String, Method> entry : attributes.entrySet()) {
            String methodName = entry.getKey();
            Method method = entry.getValue();
            Object otherValue;
            try {
                otherValue = method.invoke(object);
                Object value = attributeData.get(methodName);
                if (!attributeEquals(value, otherValue)) {
                    return false;
                }
            } catch (Exception e) {
               return false;
            } 
           
        }
        return true;
    }
1077886
private String safeToString(Object obj)
	{
		String toString = null;
		if (obj != null)
		{
		    try
		    {
		        toString = obj.toString();
		    }
		    catch (Throwable ex)
		    {
		        toString = "BAD toString() impl for " + obj.getClass().getName();
		    }
		}
		return toString;
	}
14226
private String buildObjectKey(final Object object) {

        String objectKey = null;
        final Class<?> objectClass = object.getClass();

        final KeyGenerator typeGenerator = objectClass.getAnnotation(KeyGenerator.class);
        if (typeGenerator == null) {
            objectKey = generateAggregatedKey(object);
        } else {
            objectKey = generateTypeKey(object, typeGenerator);
        }

        // If no Type keyGenerator neither Method Generator were used, use the default toString method
        if (objectKey == null) {
            objectKey = object.toString();
        }

        return objectKey;
    }
188371
public static boolean isForgeProxy(Object object)
   {
      if (object != null)
      {
         Class<?>[] interfaces = object.getClass().getInterfaces();
         if (interfaces != null)
         {
            for (Class<?> iface : interfaces)
            {
               if (iface.getName().equals(ForgeProxy.class.getName()))
               {
                  return true;
               }
            }
         }
      }
      return false;
   }
44809
public String objectToString(Object object) {
        DimIProxy action = new DimIProxy(this, IPROXY_OBJECT_TO_STRING);
        action.object = object;
        action.withContext();
        return action.stringResult;
    }
78604
public static boolean isPropertyInitialized(Object object) {
    	Class < ? > cl =  getHibernateClass();
    	
        if (cl == null) {
            return true;
        }
        
        Method method = getInitializeMethod(cl);
        return checkInitialize(method, object);
    }
1053328
@Override
    public String convertToString(T object) {
        try {
            return (String) toString.invoke(object);
        } catch (IllegalAccessException ex) {
            throw new IllegalStateException("Method is not accessible: " + toString);
        } catch (InvocationTargetException ex) {
            if (ex.getCause() instanceof RuntimeException) {
                throw (RuntimeException) ex.getCause();
            }
            throw new RuntimeException(ex.getMessage(), ex.getCause());
        }
    }
693677
private boolean canBeMadeFromString() {
        final Class<?> clazz = getClassForUnderlyingField();
        if (clazz.isEnum()) {
            return true;
        }
        try {
            // Need to use getDeclaredConstructor() instead of getConstructor() in case the constructor
            // is non-public
            clazz.getDeclaredConstructor(String.class);
            return true;
        } catch (final NoSuchMethodException e) {
            return false;
        }
    }
487560
public final void info(Object pObject)
	{
		getLogger().log(FQCN, Level.INFO, pObject, null);
	}