@PublicApi
public interface ItemResolver
Modifier and Type | Method and Description |
---|---|
<T> T |
resolveItem(ItemIdentity itemId,
Class<T> itemClass) |
<T> void |
resolveItems(Collection<ItemIdentity> itemIds,
Class<T> itemClass,
BiConsumer<ItemIdentity,T> consumer)
Resolves all the items from the given id collection and passes them to consumer.
|
void |
resolveItemsUnchecked(Collection<ItemIdentity> itemIds,
BiConsumer<ItemIdentity,Object> consumer)
Resolves all the items from the given id collection and passes them to consumer.
|
Object |
resolveUnchecked(ItemIdentity itemId) |
@Nullable <T> T resolveItem(@Nullable ItemIdentity itemId, @NotNull Class<T> itemClass)
@Internal @Nullable Object resolveUnchecked(@Nullable ItemIdentity itemId)
<T> void resolveItems(@NotNull Collection<ItemIdentity> itemIds, @NotNull Class<T> itemClass, @NotNull BiConsumer<ItemIdentity,T> consumer)
T
- type of expected item classitemIds
- id collection of items to retrieveitemClass
- expected item classconsumer
- handler for (item id, item) pairsvoid resolveItemsUnchecked(@NotNull Collection<ItemIdentity> itemIds, @NotNull BiConsumer<ItemIdentity,Object> consumer)
itemIds
- id collection of items to retrieveconsumer
- handler for (item id, item) pairsCopyright © 2024 Tempo Software. All Rights Reserved.