Skip to content

Commit

Permalink
End of endless renaming and refactoring - StickyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
ixmanuel committed Jul 30, 2017
1 parent a61b786 commit 341c351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @param <X> Type of item
* @since 0.1
*/
public final class StickyIterable<X> implements Iterable<X> {
public final class StickyOf<X> implements Iterable<X> {

/**
* The gate.
Expand All @@ -50,7 +50,7 @@ public final class StickyIterable<X> implements Iterable<X> {
* Ctor.
* @param iterable The iterable
*/
public StickyIterable(final Iterable<X> iterable) {
public StickyOf(final Iterable<X> iterable) {
this.gate = new UncheckedScalar<>(
new StickyScalar<>(
() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
import org.junit.Test;

/**
* Test case for {@link StickyIterable}.
* Test case for {@link StickyOf}.
*
* @author Yegor Bugayenko ([email protected])
* @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<Integer> list = new StickyIterable<>(
final Iterable<Integer> list = new StickyOf<>(
new ListOf<>(
() -> Collections.nCopies(size.incrementAndGet(), 0).iterator()
)
Expand Down

0 comments on commit 341c351

Please sign in to comment.