org.gatein.mop.api.content
Class ContentType<S>
java.lang.Object
org.gatein.mop.api.content.ContentType<S>
- Type Parameters:
S - the content state type parameter
public final class ContentType<S>
- extends Object
Represents a content type.
- Version:
- $Revision$
- Author:
- Julien Viet
ContentType
public ContentType(String mimeType,
Class<S> stateClass)
throws NullPointerException
- Create a new content type.
- Parameters:
mimeType - the mime typestateClass - the state class
- Throws:
NullPointerException - if any argument is null
getMimeType
public String getMimeType()
getStateClass
public Class<S> getStateClass()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2009 eXo Platform SAS. All Rights Reserved.