ExtraFile extends Extra<MMapURI> implements ExtraLinkable { @Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof ExtraFile) { final ExtraFile thatFile = (ExtraFile) that; return this.mmdFileFlag == thatFile.mmdFileFlag && this.fileUri.equals(thatFile.fileUri); } else { return false; } } ExtraFile(@Nonnull final MMapURI file);  ExtraFile(@Nonnull final String text); @Override boolean containsPattern(@Nullable final File baseFolder, @Nonnull final Pattern pattern); @Override int hashCode(); @Override boolean equals(@Nullable final Object that); boolean isMMDFile(); @Nonnull String getLCFileExtension(); @Override @Nonnull MMapURI getValue(); @Override @Nonnull ExtraType getType(); @Override @Nonnull String getAsString(); @Override @Nonnull String provideAsStringForSave(); @Override @Nonnull MMapURI getAsURI(); boolean isAbsolute(); @Nullable ExtraFile replaceParentPath(@Nullable final File baseFolder, @Nonnull final MMapURI oldFolder, @Nonnull final MMapURI newFolder); boolean hasParent(@Nullable final File baseFolder, @Nonnull final MMapURI folder); boolean isSameOrHasParent(@Nullable final File baseFolder, @Nonnull final MMapURI file); boolean isSame(@Nullable final File baseFolder, @Nonnull final MMapURI file);  }
@Test public void testEquals() throws Exception { assertTrue(new ExtraFile("./text.txt").equals(new ExtraFile("./text.txt"))); assertFalse(new ExtraFile("./text.txt").equals(new ExtraFile("./text2.txt"))); }