- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SingleValueIterator (0.32 sec)
-
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; }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.1K bytes - Viewed (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))); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.1K bytes - Viewed (0)