From 341c351d9eed56e373d3572af822a5e502e38ae7 Mon Sep 17 00:00:00 2001 From: ixmanuel Date: Sat, 29 Jul 2017 22:37:09 -0500 Subject: [PATCH] End of endless renaming and refactoring - StickyOf --- .../org/cactoos/list/{StickyIterable.java => StickyOf.java} | 4 ++-- .../list/{StickyIterableTest.java => StickyOfTest.java} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/org/cactoos/list/{StickyIterable.java => StickyOf.java} (94%) rename src/test/java/org/cactoos/list/{StickyIterableTest.java => StickyOfTest.java} (93%) diff --git a/src/main/java/org/cactoos/list/StickyIterable.java b/src/main/java/org/cactoos/list/StickyOf.java similarity index 94% rename from src/main/java/org/cactoos/list/StickyIterable.java rename to src/main/java/org/cactoos/list/StickyOf.java index 486a4c276e..d90ac753cc 100644 --- a/src/main/java/org/cactoos/list/StickyIterable.java +++ b/src/main/java/org/cactoos/list/StickyOf.java @@ -39,7 +39,7 @@ * @param Type of item * @since 0.1 */ -public final class StickyIterable implements Iterable { +public final class StickyOf implements Iterable { /** * The gate. @@ -50,7 +50,7 @@ public final class StickyIterable implements Iterable { * Ctor. * @param iterable The iterable */ - public StickyIterable(final Iterable iterable) { + public StickyOf(final Iterable iterable) { this.gate = new UncheckedScalar<>( new StickyScalar<>( () -> { diff --git a/src/test/java/org/cactoos/list/StickyIterableTest.java b/src/test/java/org/cactoos/list/StickyOfTest.java similarity index 93% rename from src/test/java/org/cactoos/list/StickyIterableTest.java rename to src/test/java/org/cactoos/list/StickyOfTest.java index 28704a225c..6919e65536 100644 --- a/src/test/java/org/cactoos/list/StickyIterableTest.java +++ b/src/test/java/org/cactoos/list/StickyOfTest.java @@ -31,19 +31,19 @@ import org.junit.Test; /** - * Test case for {@link StickyIterable}. + * Test case for {@link StickyOf}. * * @author Yegor Bugayenko (yegor256@gmail.com) * @version $Id$ * @since 0.8 * @checkstyle JavadocMethodCheck (500 lines) */ -public final class StickyIterableTest { +public final class StickyOfTest { @Test public void ignoresChangesInIterable() throws Exception { final AtomicInteger size = new AtomicInteger(2); - final Iterable list = new StickyIterable<>( + final Iterable list = new StickyOf<>( new ListOf<>( () -> Collections.nCopies(size.incrementAndGet(), 0).iterator() )