Thinking on modinverse

This commit is contained in:
Adam
2015-06-23 19:29:32 -04:00
parent 815b2e2931
commit 85fc94dd57
13 changed files with 219 additions and 5 deletions

View File

@@ -41,6 +41,12 @@ public class Class extends PoolEntry
Class c = (Class) other;
return name.equals(c.name);
}
@Override
public int hashCode()
{
return name.hashCode();
}
public java.lang.String getName()
{

View File

@@ -45,6 +45,12 @@ public class Field extends PoolEntry
Field f = (Field) other;
return clazz.equals(f.clazz) && nat.equals(f.nat);
}
@Override
public int hashCode()
{
return clazz.hashCode() ^ nat.hashCode();
}
public Class getClassEntry()
{

View File

@@ -36,6 +36,12 @@ public class Integer extends PoolEntry
Integer i = (Integer) other;
return value == i.value;
}
@Override
public java.lang.String toString()
{
return "" + value;
}
@Override
public Type getTypeClass()

View File

@@ -75,6 +75,12 @@ public class NameAndType extends PoolEntry
NameAndType nat = (NameAndType) other;
return name.equals(nat.name) && Objects.equals(signature, nat.signature) && Objects.equals(type, nat.type);
}
@Override
public int hashCode()
{
return name.hashCode();
}
public java.lang.String getName()
{