public class

IdsRetrievalDescriptor

extends Object
implements SharedEntityAccessor.RetrievalDescriptor
java.lang.Object
   ↳ com.atlassian.jira.sharing.IdsRetrievalDescriptor

Class Overview

SharedEntityAccessor.RetrievalDescriptor backed up by a Collection of ids

Summary

Public Constructors
IdsRetrievalDescriptor(Collection<Long> ids, boolean preserveOrder)
Public Methods
@Nonnull List<Long> getIds()
The list of ids to retrieve.
boolean preserveOrder()
is the order of the id list significant.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.SharedEntityAccessor.RetrievalDescriptor

Public Constructors

public IdsRetrievalDescriptor (Collection<Long> ids, boolean preserveOrder)

Public Methods

@Nonnull public List<Long> getIds ()

The list of ids to retrieve. This list should only contain unique elements (ie. a Set view would have the same size) and not contain any nulls.

Returns
  • list of ids to retrieve

public boolean preserveOrder ()

is the order of the id list significant. If so the result should preserve the same iteration order.

Returns
  • true of the order of the id list should be preserved in the result.