org.modeshape.web.jcr.rest.client

## Class Utils

- java.lang.Object
- - org.modeshape.web.jcr.rest.client.Utils

-     public final class Utils
      extends Object

  The `Utils` class contains common utilities used by this project.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Utils()` Don't allow construction.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `equivalent(Object thisObj, Object thatObj)`
    `static String` | `getMimeType(File file)` Deprecated. Use another MIME type detection framework, such as Tika

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Utils

          public Utils()

      Don't allow construction.

  - ### Method Detail

    - #### equivalent

          public static boolean equivalent(Object thisObj,
                           Object thatObj)

      Parameters:
        `thisObj` - an object being compared (may be `null`)
        `thatObj` - the other object being compared (may be `null`)
      Returns:
        `true` if both objects are `null` or both are not `null` and equal

    - #### getMimeType

          @Deprecated
          public static String getMimeType(File file)

      Deprecated. Use another MIME type detection framework, such as Tika
      Parameters:
        `file` - the file whose mime type is being requested
      Returns:
        the mime type or the default mime type (`"application/octet-stream"`) if one can't be determined from the file extension (never `null`)

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.