MMapURI implements Serializable { @Override public boolean equals(@Nullable final Object that) { if (that == null) { return false; } if (this == that) { return true; } if (that instanceof MMapURI) { final MMapURI thatURI = (MMapURI) that; if (this.parameters.size() != thatURI.parameters.size()) { return false; } for (final String s : this.parameters.stringPropertyNames()) { if (!thatURI.parameters.containsKey(s)) { return false; } if (!this.parameters.getProperty(s).equals(thatURI.parameters.getProperty(s))) { return false; } } return this.uri.equals(thatURI.uri); } else { return false; } } MMapURI(@Nonnull final String uri);  MMapURI(@Nonnull final URI uri); private  MMapURI(@Nonnull final URI uri, final boolean isFile, @Nullable final Properties properties);  MMapURI(@Nullable final File nullableBase, @Nonnull final File file, @Nullable final Properties nullableParameters); @SuppressWarnings("ConstantConditions") @Nonnull static MMapURI makeFromFilePath(@Nullable final File base, @Nonnull final String filePath, @Nullable final Properties properties); @Override int hashCode(); @Override boolean equals(@Nullable final Object that); @Nonnull MMapURI replaceBaseInPath(final boolean replaceHost, @Nonnull final URI newBase, int currentNumberOfResourceItemsTheLasIsZero); @Nonnull MMapURI replaceName(@Nonnull final String newName); @Nonnull URI asURI(); @Nonnull String getExtension(); @Nonnull String asString(final boolean ascII, final boolean addPropertiesAsQuery); @Nonnull File asFile(@Nullable final File base); @Nonnull Properties getParameters(); boolean isAbsolute(); @Override @Nonnull String toString(); static final long serialVersionUID; }
@Test public void testEquals() throws Exception { assertTrue(new MMapURI("http: assertTrue(new MMapURI("http: assertFalse(new MMapURI("http: assertFalse(new MMapURI("http: }