Package com.enonic.xp.schema.content
Class ContentTypes
- java.lang.Object
-
- com.enonic.xp.support.AbstractImmutableEntityList<ContentType>
-
- com.enonic.xp.schema.content.ContentTypes
-
- All Implemented Interfaces:
java.lang.Iterable<ContentType>
@Beta public final class ContentTypes extends AbstractImmutableEntityList<ContentType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContentTypes.Builder
-
Field Summary
-
Fields inherited from class com.enonic.xp.support.AbstractImmutableEntityList
list
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(ContentType... contentTypes)
static ContentTypes
from(java.lang.Iterable<? extends ContentType> contentTypes)
static ContentTypes
from(java.util.Collection<? extends ContentType> contentTypes)
static ContentTypes
from(java.util.Iterator<? extends ContentType> contentTypes)
ContentType
getContentType(ContentTypeName contentTypeName)
com.google.common.collect.ImmutableSet<ContentTypeName>
getNames()
-
Methods inherited from class com.enonic.xp.support.AbstractImmutableEntityList
contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, stream, toString
-
-
-
-
Method Detail
-
add
public ContentTypes add(ContentType... contentTypes)
-
add
public ContentTypes add(java.lang.Iterable<ContentType> contentTypes)
-
getNames
public com.google.common.collect.ImmutableSet<ContentTypeName> getNames()
-
getContentType
public ContentType getContentType(ContentTypeName contentTypeName)
-
filter
public ContentTypes filter(java.util.function.Predicate<ContentType> filter)
-
empty
public static ContentTypes empty()
-
from
public static ContentTypes from(ContentType... contentTypes)
-
from
public static ContentTypes from(java.lang.Iterable<? extends ContentType> contentTypes)
-
from
public static ContentTypes from(java.util.Iterator<? extends ContentType> contentTypes)
-
from
public static ContentTypes from(java.util.Collection<? extends ContentType> contentTypes)
-
create
public static ContentTypes.Builder create()
-
-