public class ModelType extends Object
| Constructor and Description |
|---|
ModelType() |
ModelType(boolean collection,
String itemsType) |
| Modifier and Type | Method and Description |
|---|---|
static ModelType |
collectionModelType(String itemsType) |
boolean |
equals(Object o) |
String |
getItemsType() |
boolean |
isCollection() |
static ModelType |
simpleModelType() |
public ModelType()
public ModelType(boolean collection,
String itemsType)
public static ModelType collectionModelType(String itemsType)
itemsType - the media type as String for each item in the collectionpublic static ModelType simpleModelType()
public boolean isCollection()
ModelType represents a collection or not.public String getItemsType()
isCollection() is false) then this value represents the type for
each element in the collection.Copyright © 2018. All rights reserved.