- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for SingleValueIterator (0.06 seconds)
-
src/main/java/org/codelibs/core/collection/SingleValueIterator.java
* @return an {@link Iterable} wrapping a {@link SingleValueIterator} */ public static <E> Iterable<E> iterable(final E value) { return () -> new SingleValueIterator<>(value); } /** * Constructs an instance. * * @param value the single value returned by the iterator */ public SingleValueIterator(final E value) { this.value = value; }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/collection/SingleValueIteratorTest.java
import org.junit.Test; /** * @author koichik * */ public class SingleValueIteratorTest { /** * */ @Test public void test() { final SingleValueIterator<String> it = new SingleValueIterator<String>("Foo"); assertThat(it.hasNext(), is(true)); assertThat(it.next(), is("Foo")); assertThat(it.hasNext(), is(not(true))); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.1K bytes - Click Count (0)