@Test public void testEquals() { assertEquals(new SourceValue(1), new SourceValue(1)); assertNotEquals(new SourceValue(1), new SourceValue(1, new InsnNode(Opcodes.NOP))); assertNotEquals(new SourceValue(1), new SourceValue(2)); assertNotEquals(new SourceValue(1), null); }
@Override public boolean equals(final Object value) { if (!(value instanceof SourceValue)) { return false; } SourceValue sourceValue = (SourceValue) value; return size == sourceValue.size && insns.equals(sourceValue.insns); }
SourceValue implements Value { @Override public boolean equals(final Object value) { if (!(value instanceof SourceValue)) { return false; } SourceValue sourceValue = (SourceValue) value; return size == sourceValue.size && insns.equals(sourceValue.insns); } }
SourceValue implements Value { @Override public boolean equals(final Object value) { if (!(value instanceof SourceValue)) { return false; } SourceValue sourceValue = (SourceValue) value; return size == sourceValue.size && insns.equals(sourceValue.insns); } SourceValue(final int size);  SourceValue(final int size, final AbstractInsnNode insnNode);  SourceValue(final int size, final Set<AbstractInsnNode> insnSet); }
SourceValue implements Value { @Override public boolean equals(final Object value) { if (!(value instanceof SourceValue)) { return false; } SourceValue sourceValue = (SourceValue) value; return size == sourceValue.size && insns.equals(sourceValue.insns); } SourceValue(final int size);  SourceValue(final int size, final AbstractInsnNode insnNode);  SourceValue(final int size, final Set<AbstractInsnNode> insnSet); @Override int getSize(); @Override boolean equals(final Object value); @Override int hashCode(); }
SourceValue implements Value { @Override public boolean equals(final Object value) { if (!(value instanceof SourceValue)) { return false; } SourceValue sourceValue = (SourceValue) value; return size == sourceValue.size && insns.equals(sourceValue.insns); } SourceValue(final int size);  SourceValue(final int size, final AbstractInsnNode insnNode);  SourceValue(final int size, final Set<AbstractInsnNode> insnSet); @Override int getSize(); @Override boolean equals(final Object value); @Override int hashCode(); final int size; final Set<AbstractInsnNode> insns; }