@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(java.lang.Iterable<ContentType> contentTypes) |
static ContentTypes.Builder |
create() |
static ContentTypes |
empty() |
ContentTypes |
filter(java.util.function.Predicate<ContentType> filter) |
static ContentTypes |
from(java.util.Collection<? extends ContentType> contentTypes) |
static ContentTypes |
from(ContentType... contentTypes) |
static ContentTypes |
from(java.lang.Iterable<? extends ContentType> contentTypes) |
static ContentTypes |
from(java.util.Iterator<? extends ContentType> contentTypes) |
ContentType |
getContentType(ContentTypeName contentTypeName) |
com.google.common.collect.ImmutableSet<ContentTypeName> |
getNames() |
contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, stream, toString
public ContentTypes add(ContentType... contentTypes)
public ContentTypes add(java.lang.Iterable<ContentType> contentTypes)
public com.google.common.collect.ImmutableSet<ContentTypeName> getNames()
public ContentType getContentType(ContentTypeName contentTypeName)
public ContentTypes filter(java.util.function.Predicate<ContentType> filter)
public static ContentTypes empty()
public static ContentTypes from(ContentType... contentTypes)
public static ContentTypes from(java.lang.Iterable<? extends ContentType> contentTypes)
public static ContentTypes from(java.util.Iterator<? extends ContentType> contentTypes)
public static ContentTypes from(java.util.Collection<? extends ContentType> contentTypes)
public static ContentTypes.Builder create()