mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-10 01:36:03 +00:00
Cleanup SRC
This commit is contained in:
@@ -2,32 +2,26 @@ package com.volmit.iris.util;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
public class Contained<T>
|
||||
{
|
||||
private T t;
|
||||
public class Contained<T> {
|
||||
private T t;
|
||||
|
||||
public Contained(T t)
|
||||
{
|
||||
set(t);
|
||||
}
|
||||
public Contained(T t) {
|
||||
set(t);
|
||||
}
|
||||
|
||||
public Contained()
|
||||
{
|
||||
this(null);
|
||||
}
|
||||
|
||||
public void mod(Function<T, T> x)
|
||||
{
|
||||
set(x.apply(t));
|
||||
}
|
||||
public Contained() {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public T get()
|
||||
{
|
||||
return t;
|
||||
}
|
||||
public void mod(Function<T, T> x) {
|
||||
set(x.apply(t));
|
||||
}
|
||||
|
||||
public void set(T t)
|
||||
{
|
||||
this.t = t;
|
||||
}
|
||||
public T get() {
|
||||
return t;
|
||||
}
|
||||
|
||||
public void set(T t) {
|
||||
this.t = t;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user