com.mapquest
Class ContentType

java.lang.Object
  extended bycom.mapquest.ContentType

public final class ContentType
extends java.lang.Object

Map Image Data Formats. These constants are used to override the default GIF image type.


Field Summary
static ContentType AIEPS
           
static ContentType ContentTypeAIEPS
          Deprecated. Use AIEPS instead.
static ContentType ContentTypeEPS
          Deprecated. Use EPS instead.
static ContentType ContentTypeGIF
          Deprecated. Use GIF instead.
static ContentType ContentTypePNG
          Deprecated. Use PNG instead.
static ContentType ContentTypeWBMP
          Deprecated. Use WBMP instead.
static ContentType EPS
           
static ContentType GIF
           
static ContentType PNG
           
static ContentType WBMP
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
static ContentType from_int(int value)
          Deprecated. Use fromInt instead.
static ContentType fromInt(int value)
          Creates an object from an integer value.
 int hashCode()
          Returns a hash code for this ContentType.
 int intValue()
          Returns an int type representing this object.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ContentTypeGIF

public static final ContentType ContentTypeGIF
Deprecated. Use GIF instead.


ContentTypeEPS

public static final ContentType ContentTypeEPS
Deprecated. Use EPS instead.


ContentTypeAIEPS

public static final ContentType ContentTypeAIEPS
Deprecated. Use AIEPS instead.


ContentTypePNG

public static final ContentType ContentTypePNG
Deprecated. Use PNG instead.


ContentTypeWBMP

public static final ContentType ContentTypeWBMP
Deprecated. Use WBMP instead.


GIF

public static final ContentType GIF

EPS

public static final ContentType EPS

AIEPS

public static final ContentType AIEPS

PNG

public static final ContentType PNG

WBMP

public static final ContentType WBMP
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.


intValue

public int intValue()
Returns an int type representing this object.


fromInt

public static ContentType fromInt(int value)
Creates an object from an integer value.


from_int

public static ContentType from_int(int value)
Deprecated. Use fromInt instead.

Creates an object from an integer value.


equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a ContentType object that has same attributes as this object.

Parameters:
otherObject - the object to compare this ContentType against.
Returns:
true if the ContentType objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this ContentType.

Returns:
a hash code value for this ContentType.