title: guava-libraries - Is the Ordering class thread safe?
body: <p>The <a href="http://code.google.com/p/guava-libraries/" rel="nofollow noreferrer">guava-libraries</a> have a class <a href="http://guava-libraries.googlecode.com/svn/tags/release09/javadoc/com/google/common/collect/Ordering.html" rel="nofollow noreferrer">Ordering</a>. I'm wondering if it's thread safe.</p>
  
  <p>For example, can it be used as a static variable?</p>
  
  <pre><code>public static Ordering&lt;String&gt; BY_LENGTH_ORDERING = new Ordering&lt;String&gt;() {
     public int compare(String left, String right) {
        return Ints.compare(left.length(), right.length());
     }
  };
  </code></pre>