public class ContentTypeCollection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ContentTypeCollection |
asCollection(java.util.Collection<? extends ContentType> contentTypes) |
static ContentTypeCollection |
asCollection(ContentType... contentTypes) |
boolean |
contains(ContentType type) |
ContentType[] |
getContentTypes() |
boolean |
isCompatibleTo(ContentType target)
Returns
true if and only if this collection contains
a ContentType that is compatible towards the target
parameter as defined by ContentTypeRegistry.isCompatible(ContentType, ContentType) |
boolean |
isCompatibleType(ContentType target)
Returns
true if and only if this collection contains
a ContentType the target parameter is considered
to be compatible towards as measured by
ContentTypeRegistry.isCompatible(ContentType, ContentType) |
boolean |
isEmpty() |
int |
size() |
public static ContentTypeCollection asCollection(ContentType... contentTypes)
public static ContentTypeCollection asCollection(java.util.Collection<? extends ContentType> contentTypes)
public boolean contains(ContentType type)
public ContentType[] getContentTypes()
public int size()
public boolean isEmpty()
public boolean isCompatibleTo(ContentType target)
true
if and only if this collection contains
a ContentType
that is compatible towards the target
parameter as defined by ContentTypeRegistry.isCompatible(ContentType, ContentType)
public boolean isCompatibleType(ContentType target)
true
if and only if this collection contains
a ContentType
the target
parameter is considered
to be compatible towards as measured by
ContentTypeRegistry.isCompatible(ContentType, ContentType)