Class EntityHelper
java.lang.Object
com.atlassian.jira.rest.client.api.domain.EntityHelper
Helper class for entities.
- Since:
- v1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classEntityHelper.HasFileNamePredicate<T extends Attachment>static classEntityHelper.HasIdPredicate<T extends IdentifiableEntity<K>,K> static classEntityHelper.HasNamePredicate<T extends NamedEntity> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.google.common.base.Function<NamedEntity, String> static com.google.common.base.Function<IdentifiableEntity<String>, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Attachment>
TfindAttachmentByFileName(Iterable<T> attachments, String fileName) static <T extends IdentifiableEntity<K>,K>
TfindEntityById(Iterable<T> entities, K id) static <T extends NamedEntity>
TfindEntityByName(Iterable<T> entities, String name) toFileNamesList(Iterable<? extends Attachment> attachments) toNamesList(Iterable<? extends NamedEntity> items) toStringIdList(Iterable<IdentifiableEntity<T>> items)
-
Field Details
-
GET_ENTITY_STRING_ID_FUNCTION
public static com.google.common.base.Function<IdentifiableEntity<String>,String> GET_ENTITY_STRING_ID_FUNCTION -
GET_ENTITY_NAME_FUNCTION
-
-
Constructor Details
-
EntityHelper
public EntityHelper()
-
-
Method Details
-
toNamesList
-
toFileNamesList
-
toStringIdList
-
findEntityByName
-
findEntityById
-
findAttachmentByFileName
public static <T extends Attachment> T findAttachmentByFileName(Iterable<T> attachments, String fileName)
-