@Test public void testEquals() { MMapInput input1 = new MMapInput("sqoopsqoop", false, InputEditable.ANY, StringUtils.EMPTY); MMapInput input2 = new MMapInput("sqoopsqoop", false, InputEditable.ANY, StringUtils.EMPTY); assertTrue(input1.equals(input2)); MMapInput input3 = new MMapInput("sqoopsqoop", false, InputEditable.ANY, StringUtils.EMPTY); MMapInput input4 = new MMapInput("sqoopsqoop1", false, InputEditable.ANY, StringUtils.EMPTY); assertFalse(input3.equals(input4)); }
@Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MMapInput)) { return false; } MMapInput mmi = (MMapInput) other; return getName().equals(mmi.getName()); }
MMapInput extends MInput<Map<String, String>> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MMapInput)) { return false; } MMapInput mmi = (MMapInput) other; return getName().equals(mmi.getName()); } }
MMapInput extends MInput<Map<String, String>> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MMapInput)) { return false; } MMapInput mmi = (MMapInput) other; return getName().equals(mmi.getName()); } MMapInput(String name, boolean sensitive, InputEditable editable, String overrides); }
MMapInput extends MInput<Map<String, String>> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MMapInput)) { return false; } MMapInput mmi = (MMapInput) other; return getName().equals(mmi.getName()); } MMapInput(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 MMapInput clone(boolean cloneWithValue); }
MMapInput extends MInput<Map<String, String>> { @Override public boolean equals(Object other) { if (other == this) { return true; } if (!(other instanceof MMapInput)) { return false; } MMapInput mmi = (MMapInput) other; return getName().equals(mmi.getName()); } MMapInput(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 MMapInput clone(boolean cloneWithValue);  }