@Beta public final class ContentTypes extends AbstractImmutableEntityList<ContentType>
Modifier and Type | Class and Description |
---|---|
static class |
ContentTypes.Builder |
list
Modifier and Type | Method and Description |
---|---|
ContentTypes |
add(ContentType... contentTypes) |
ContentTypes |
add(Iterable<ContentType> contentTypes) |
static ContentTypes.Builder |
create() |
static ContentTypes |
empty() |
ContentTypes |
filter(Predicate<ContentType> filter) |
static ContentTypes |
from(Collection<? extends ContentType> contentTypes) |
static ContentTypes |
from(ContentType... contentTypes) |
static ContentTypes |
from(Iterable<? extends ContentType> contentTypes) |
static ContentTypes |
from(Iterator<? extends ContentType> contentTypes) |
ContentType |
getContentType(ContentTypeName contentTypeName) |
ImmutableSet<ContentTypeName> |
getNames() |
contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, stream, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ContentTypes add(ContentType... contentTypes)
public ContentTypes add(Iterable<ContentType> contentTypes)
public ImmutableSet<ContentTypeName> getNames()
public ContentType getContentType(ContentTypeName contentTypeName)
public ContentTypes filter(Predicate<ContentType> filter)
public static ContentTypes empty()
public static ContentTypes from(ContentType... contentTypes)
public static ContentTypes from(Iterable<? extends ContentType> contentTypes)
public static ContentTypes from(Iterator<? extends ContentType> contentTypes)
public static ContentTypes from(Collection<? extends ContentType> contentTypes)
public static ContentTypes.Builder create()