public class

CollectionEnclosedIterable

extends Object
implements EnclosedIterable<T>
java.lang.Object
   ↳ com.atlassian.jira.util.collect.CollectionEnclosedIterable<T>

Class Overview

Simple collection based EnclosedIterable.

Summary

Public Methods
static <T> EnclosedIterable<T> copy(Collection<? extends T> collection)
boolean equals(Object obj)
void foreach(Consumer<T> sink)
Apply the sink to all elements in the Collection.
static <T> EnclosedIterable<T> from(Collection<? extends T> collection)
Create an EnclosedIterable from the supplied Collection.
int hashCode()
boolean isEmpty()
int size()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.collect.EnclosedIterable
From interface com.atlassian.jira.util.collect.Sized

Public Methods

public static EnclosedIterable<T> copy (Collection<? extends T> collection)

public boolean equals (Object obj)

public void foreach (Consumer<T> sink)

Apply the sink to all elements in the Collection.

public static EnclosedIterable<T> from (Collection<? extends T> collection)

Create an EnclosedIterable from the supplied Collection. Does not copy the collection so you should only use this if you are about to lose the reference or the collection is immutable.

public int hashCode ()

public boolean isEmpty ()

public int size ()