GUI & Tasking utils

This commit is contained in:
Daniel Mills
2020-08-24 08:03:05 -04:00
parent e9544bb610
commit 273f7c7a73
50 changed files with 3937 additions and 55 deletions

View File

@@ -0,0 +1,36 @@
package com.volmit.iris.util;
/**
* Represents a number that can be finalized and be changed
*
* @author cyberpwn
*/
public class FinalInteger extends Wrapper<Integer>
{
public FinalInteger(Integer t)
{
super(t);
}
/**
* Add to this value
*
* @param i
* the number to add to this value (value = value + i)
*/
public void add(int i)
{
set(get() + i);
}
/**
* Subtract from this value
*
* @param i
* the number to subtract from this value (value = value - i)
*/
public void sub(int i)
{
set(get() - i);
}
}