k (<code>this.getClass() == obj.getClass()</code>). Therefore
 any class that extends from <code>MediaType</code> class and needs to override
 one of the <code>equals(...)</code> and <a href="../../../../javax/ws/rs/core/MediaType.html#hashCode--"><code>hashCode()</code></a> methods must
 always override both methods to ensure the contract between
 <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang"><code>