Skip to content

Commit

Permalink
Remove unneeded implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed May 27, 2024
1 parent 1270e57 commit 26a9ed9
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/main/java/dev/lukebemish/codecextras/mutable/DataElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,4 @@ public interface DataElement<T> {
T get();
boolean dirty();
void setDirty(boolean dirty);

class Simple<T> implements DataElement<T> {
public Simple(T defaultValue) {
this.value = defaultValue;
}

private volatile T value;
private volatile boolean dirty;

@Override
public synchronized void set(T t) {
this.value = t;
}

@Override
public T get() {
return value;
}

@Override
public boolean dirty() {
return dirty;
}

@Override
public void setDirty(boolean dirty) {
this.dirty = dirty;
}
}
}

0 comments on commit 26a9ed9

Please sign in to comment.