public final class Type
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
asString() |
The string representation of this type as it would appear in a MIME type.
|
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
|
static Type |
type(java.lang.String type) |
Factory method for generating a MIME top-level type from the given
String. |
public static Type type(java.lang.String type)
String.type - the String representation of the type.Type representing the given String.public java.lang.String asString()
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Object