@Beta public final class Attachments extends AbstractImmutableEntityList<Attachment>
Modifier and Type | Class and Description |
---|---|
static class |
Attachments.Builder |
list
Modifier and Type | Method and Description |
---|---|
Attachments |
add(Attachment... attachments) |
Attachments |
add(Iterable<Attachment> attachments) |
static Attachments.Builder |
builder() |
Attachment |
byLabel(String name) |
Attachment |
byName(String name) |
static Attachments |
empty() |
static Attachments |
from(Attachment... contents) |
static Attachments |
from(Collection<? extends Attachment> contents) |
static Attachments |
from(Iterable<? extends Attachment> contents) |
boolean |
hasByLabel(String label) |
boolean |
hasByName(String name) |
contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, stream, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Attachment byName(String name)
public Attachment byLabel(String name)
public boolean hasByName(String name)
public boolean hasByLabel(String label)
public Attachments add(Attachment... attachments)
public Attachments add(Iterable<Attachment> attachments)
public static Attachments empty()
public static Attachments from(Attachment... contents)
public static Attachments from(Iterable<? extends Attachment> contents)
public static Attachments from(Collection<? extends Attachment> contents)
public static Attachments.Builder builder()