Class Freezable<T>
java.lang.Object
de.luckymcdev.foundryengine.common.util.Freezable<T>
- Type Parameters:
T- the type of value.
A class which can handle a value which is freezable.
Very simple.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Freezable
-
-
Method Details
-
frozen
public boolean frozen()Returns true if this value is frozen (immutable). -
freeze
public void freeze()Freezes this value, preventing further modifications. -
setValue
Sets the value if not frozen. -
value
Returns the current value.
-