@Test public void testEquals() { MIntegerInput input1 = new MIntegerInput("sqoopsqoop", false, InputEditable.ANY, StringUtils.EMPTY); MIntegerInput input2 = new MIntegerInput("sqoopsqoop", false, InputEditable.ANY, StringUtils.EMPTY); assertTrue(input1.equals(input2)); MIntegerInput input3 = new MIntegerInput("sqoopsqoop", false, InputEditable.ANY, StringUtils.EMPTY); MIntegerInput input4 = new MIntegerInput("sqoopsqoop1", false, InputEditable.ANY, StringUtils.EMPTY); assertFalse(input3.equals(input4)); }
@Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MIntegerInput)) { return false; } MIntegerInput i = (MIntegerInput) other; return getName().equals(i.getName()); }
MIntegerInput extends MInput<Integer> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MIntegerInput)) { return false; } MIntegerInput i = (MIntegerInput) other; return getName().equals(i.getName()); } }
MIntegerInput extends MInput<Integer> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MIntegerInput)) { return false; } MIntegerInput i = (MIntegerInput) other; return getName().equals(i.getName()); } MIntegerInput(String name, boolean sensitive, InputEditable editable, String overrides); }
MIntegerInput extends MInput<Integer> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MIntegerInput)) { return false; } MIntegerInput i = (MIntegerInput) other; return getName().equals(i.getName()); } MIntegerInput(String name, boolean sensitive, InputEditable editable, String overrides); @Override String getUrlSafeValueString(); @Override void restoreFromUrlSafeValueString(String valueString); @Override MInputType getType(); @Override boolean equals(Object other); @Override int hashCode(); @Override boolean isEmpty(); @Override void setEmpty(); @Override MIntegerInput clone(boolean cloneWithValue); }
MIntegerInput extends MInput<Integer> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MIntegerInput)) { return false; } MIntegerInput i = (MIntegerInput) other; return getName().equals(i.getName()); } MIntegerInput(String name, boolean sensitive, InputEditable editable, String overrides); @Override String getUrlSafeValueString(); @Override void restoreFromUrlSafeValueString(String valueString); @Override MInputType getType(); @Override boolean equals(Object other); @Override int hashCode(); @Override boolean isEmpty(); @Override void setEmpty(); @Override MIntegerInput clone(boolean cloneWithValue);  }