Skip to content

Commit

Permalink
feat(api): IObjectHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Sep 17, 2022
1 parent 323d0f0 commit 264ce36
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.

This file was deleted.

@@ -0,0 +1,9 @@
package org.auioc.mcmod.arnicalib.api.java.holder;

public interface IObjectHolder<T> {

T get();

void set(T value);

}

This file was deleted.

@@ -1,17 +1,19 @@
package org.auioc.mcmod.arnicalib.api.java.holder;

public class ObjectHolder<T> {
public class ObjectHolder<T> implements IObjectHolder<T> {

protected T value;

public ObjectHolder(T value) {
this.value = value;
}

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

@Override
public void set(T value) {
this.value = value;
}
Expand Down

0 comments on commit 264ce36

Please sign in to comment.