com.atlassian.jira.rest.client.api.domain
Class EntityHelper
java.lang.Object
com.atlassian.jira.rest.client.api.domain.EntityHelper
public class EntityHelper
- extends Object
Helper class for entities.
- Since:
- v1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GET_ENTITY_STRING_ID_FUNCTION
public static com.google.common.base.Function<IdentifiableEntity<String>,String> GET_ENTITY_STRING_ID_FUNCTION
EntityHelper
public EntityHelper()
toNamesList
public static Iterable<String> toNamesList(Iterable<? extends NamedEntity> items)
toFileNamesList
public static Iterable<String> toFileNamesList(Iterable<? extends Attachment> attachments)
toStringIdList
public static <T> Iterable<String> toStringIdList(Iterable<IdentifiableEntity<T>> items)
findEntityByName
public static <T extends NamedEntity> T findEntityByName(Iterable<T> entities,
String name)
findEntityById
public static <T extends IdentifiableEntity<K>,K> T findEntityById(Iterable<T> entities,
K id)
findAttachmentByFileName
public static <T extends Attachment> T findAttachmentByFileName(Iterable<T> attachments,
String fileName)
Copyright © 2014 Atlassian. All Rights Reserved.