Package com.enonic.xp.attachment
Class Attachments
- java.lang.Object
-
- com.enonic.xp.support.AbstractImmutableEntityList<Attachment>
-
- com.enonic.xp.attachment.Attachments
-
- All Implemented Interfaces:
java.lang.Iterable<Attachment>
@Beta public final class Attachments extends AbstractImmutableEntityList<Attachment>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Attachments.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 Attachments
add(Attachment... attachments)
Attachments
add(java.lang.Iterable<Attachment> attachments)
Attachment
byLabel(java.lang.String name)
Attachment
byName(java.lang.String name)
static Attachments.Builder
create()
static Attachments
empty()
static Attachments
from(Attachment... contents)
static Attachments
from(java.lang.Iterable<? extends Attachment> contents)
static Attachments
from(java.util.Collection<? extends Attachment> contents)
boolean
hasByLabel(java.lang.String label)
boolean
hasByName(java.lang.String name)
-
Methods inherited from class com.enonic.xp.support.AbstractImmutableEntityList
contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, stream, toString
-
-
-
-
Method Detail
-
byName
public Attachment byName(java.lang.String name)
-
byLabel
public Attachment byLabel(java.lang.String name)
-
hasByName
public boolean hasByName(java.lang.String name)
-
hasByLabel
public boolean hasByLabel(java.lang.String label)
-
add
public Attachments add(Attachment... attachments)
-
add
public Attachments add(java.lang.Iterable<Attachment> attachments)
-
empty
public static Attachments empty()
-
from
public static Attachments from(Attachment... contents)
-
from
public static Attachments from(java.lang.Iterable<? extends Attachment> contents)
-
from
public static Attachments from(java.util.Collection<? extends Attachment> contents)
-
create
public static Attachments.Builder create()
-
-