congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CollectionUtil.toList
Code IndexAdd Tabnine to your IDE (free)

How to use
toList
method
in
com.atlassian.jira.util.collect.CollectionUtil

Best Java code snippets using com.atlassian.jira.util.collect.CollectionUtil.toList (Showing top 7 results out of 315)

origin: com.atlassian.jira/jira-api

/**
 * Turn the iterable into a list.
 *
 * @param <T> the element type
 * @param iterable to iterate over the elements
 * @return an unmodifiable {@link List} of the elements in the iterator
 */
public static <T> List<T> toList(@Nonnull final Iterable<? extends T> iterable)
{
  return toList(iterable.iterator());
}
origin: com.atlassian.jira/jira-api

public CollectionBuilder<T> addAll(final Enumeration<? extends T> elements)
{
  this.elements.addAll(toList(notNull("elements", elements)));
  return this;
}
origin: com.atlassian.jira/jira-api

/**
 * Turn the enumeration into a list.
 *
 * @param <T> the element type
 * @param enumeration to enumerate over the elements
 * @return an unmodifiable {@link List} of the elements in the iterator
 */
public static <T> List<T> toList(@Nonnull final Enumeration<? extends T> enumeration)
{
  return toList(fromEnumeration(enumeration));
}
origin: com.atlassian.jira/jira-api

/**
 * Return a List that is transformed from elements of the input type to elements of the output type by a transformer function.
 *
 * @param <T> the input type
 * @param <R> the out type
 * @param iterator to iterate over the contents
 * @param transformer the function that performs the transformation
 * @return an unmodifiable List of the transformed type
 */
public static <T, R> List<R> transform(@Nonnull final Iterator<? extends T> iterator, @Nonnull final Function<T, R> transformer)
{
  return toList(transformIterator(iterator, transformer));
}
origin: com.atlassian.jira/jira-core

@Override
@Nonnull
public Collection<IssueSearcher<?>> getSearchersByClauseName(final ApplicationUser user, final String jqlClauseName)
{
  notBlank("jqlClauseName", jqlClauseName);
  return toList(filter(transform(getHelper().getIssueSearcherRegistrationsByClauseName(jqlClauseName),
      new Function<SearcherRegistration, IssueSearcher<?>>()
      {
        @Override
        public IssueSearcher<?> get(final SearcherRegistration searcherRegistration)
        {
          return searcherRegistration.getIssueSearcher();
        }
      }), Predicates.<IssueSearcher<?>>notNull()));
}
origin: com.atlassian.jira/jira-core

@Override
public Collection<IssueSearcher<?>> getSearchers(final ApplicationUser searcher, final SearchContext context)
{
  notNull("context", context);
  context.verify();
  return toList(filter(getAllSearchers(), new IsShown(searcher, context)));
}
origin: com.atlassian.jira/jira-core

private Collection<TaskDescriptor<?>> findTasksInternal(final TaskMatcher matcher)
{
  notNull("matcher", matcher);
  return toList(transform(filter(getTasks(taskMap), new TaskMatcherPredicate(matcher)),
      Functions.<TaskDescriptor<?>, TaskDescriptor<?>>coerceToSuper()));
}
com.atlassian.jira.util.collectCollectionUtiltoList

Javadoc

Turn the iterable into a list.

Popular methods of CollectionUtil

  • copyAsImmutableList
    Return an immutable list copy of the passed collection.
  • filter
    Create a filtered Iterator.
  • transform
    Return a List that is transformed from elements of the input type to elements of the output type by
  • contains
    Does the supplied Iterator contain anything that matches the predicate?
  • foreach
    For each element in the iterator, consume the contents.
  • copyAsImmutableMap
    Return an immutable copy of the passed map. The type of the reurned map is not gaurenteed to match t
  • findFirstMatch
    Return the first found element that the predicate matches.
  • indexOf
    Returns the index of the first element that matches the predicate.
  • predicateAdapter
  • sort
    Copy and sort the passed collection and return an unmodifiable List of the elements.
  • toSet
    Turn the iterable into a Set.
  • transformIterator
    Return an Iterator that is transformed from elements of the input type to elements of the output typ
  • toSet,
  • transformIterator,
  • transformSet

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now