com.atlassian.jira.rest.client.domain
Class EntityHelper
java.lang.Object
com.atlassian.jira.rest.client.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)
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)
Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.