Skip to content

Commit

Permalink
Деревья
Browse files Browse the repository at this point in the history
  • Loading branch information
Pastor committed Dec 4, 2024
1 parent b89aeb9 commit 794fb15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vol6/src/main/java/ru/mifi/practice/vol6/Counter.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package ru.mifi.practice.vol5;
package ru.mifi.practice.vol6;

import java.util.concurrent.atomic.AtomicInteger;

public interface Counter {
void increment();

void reset();

static Counter create() {
return new Default();
}

void increment();

void reset();

final class Default implements Counter {
private final AtomicInteger count = new AtomicInteger(0);

Expand Down

0 comments on commit 794fb15

Please sign in to comment.