Allow pool to be dynamically rebuilt

This commit is contained in:
Adam
2015-05-09 17:00:30 -04:00
parent 0d21d49d2d
commit 4af719032d
45 changed files with 597 additions and 333 deletions

View File

@@ -18,6 +18,23 @@ public class Integer extends PoolEntry
value = is.readInt();
}
public Integer(ConstantPool pool, int i)
{
super(pool, ConstantType.INTEGER);
value = i;
}
@Override
public boolean equals(Object other)
{
if (!(other instanceof Integer))
return false;
Integer i = (Integer) other;
return value == i.value;
}
@Override
public Object getObject()