@Test public void testEquals() throws Exception { assertTrue(new ExtraNote("aaa").equals(new ExtraNote("aaa"))); assertFalse(new ExtraNote("aaa").equals(new ExtraNote("Aaa"))); assertFalse(new ExtraNote("aaa").equals(new ExtraNote("aaaa"))); assertFalse(new ExtraNote("aaa").equals(new ExtraNote(""))); }
@Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof ExtraNote) { return this.text.equals(((ExtraNote) that).text); } else { return false; } }
ExtraNote extends Extra<String> { @Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof ExtraNote) { return this.text.equals(((ExtraNote) that).text); } else { return false; } } }
ExtraNote extends Extra<String> { @Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof ExtraNote) { return this.text.equals(((ExtraNote) that).text); } else { return false; } } ExtraNote(@Nonnull final String text); }
ExtraNote extends Extra<String> { @Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof ExtraNote) { return this.text.equals(((ExtraNote) that).text); } else { return false; } } ExtraNote(@Nonnull final String text); @Override boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern); @Override boolean equals(@Nullable final Object that); @Override int hashCode(); @Override @Nonnull String getValue(); @Override @Nonnull ExtraType getType(); @Override @Nonnull String getAsString(); @Override @Nonnull String provideAsStringForSave(); }
ExtraNote extends Extra<String> { @Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof ExtraNote) { return this.text.equals(((ExtraNote) that).text); } else { return false; } } ExtraNote(@Nonnull final String text); @Override boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern); @Override boolean equals(@Nullable final Object that); @Override int hashCode(); @Override @Nonnull String getValue(); @Override @Nonnull ExtraType getType(); @Override @Nonnull String getAsString(); @Override @Nonnull String provideAsStringForSave();  }