public class EntityHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityHelper.AddressEndsWithPredicate |
static class |
EntityHelper.HasFileNamePredicate<T extends Attachment> |
static class |
EntityHelper.HasIdPredicate<T extends IdentifiableEntity<K>,K> |
static class |
EntityHelper.HasNamePredicate<T extends NamedEntity> |
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<IdentifiableEntity<String>,String> |
GET_ENTITY_STRING_ID_FUNCTION |
Constructor and Description |
---|
EntityHelper() |
Modifier and Type | Method and Description |
---|---|
static <T extends Attachment> |
findAttachmentByFileName(Iterable<T> attachments,
String fileName) |
static <T extends IdentifiableEntity<K>,K> |
findEntityById(Iterable<T> entities,
K id) |
static <T extends NamedEntity> |
findEntityByName(Iterable<T> entities,
String name) |
static Iterable<String> |
toFileNamesList(Iterable<? extends Attachment> attachments) |
static Iterable<String> |
toNamesList(Iterable<? extends NamedEntity> items) |
static <T> Iterable<String> |
toStringIdList(Iterable<IdentifiableEntity<T>> items) |
public static com.google.common.base.Function<IdentifiableEntity<String>,String> GET_ENTITY_STRING_ID_FUNCTION
public static Iterable<String> toNamesList(Iterable<? extends NamedEntity> items)
public static Iterable<String> toFileNamesList(Iterable<? extends Attachment> attachments)
public static <T> Iterable<String> toStringIdList(Iterable<IdentifiableEntity<T>> items)
public static <T extends NamedEntity> T findEntityByName(Iterable<T> entities, String name)
public static <T extends IdentifiableEntity<K>,K> T findEntityById(Iterable<T> entities, K id)
public static <T extends Attachment> T findAttachmentByFileName(Iterable<T> attachments, String fileName)
Copyright © 2013 Atlassian. All Rights Reserved.