@Test public void testGetExtension() throws Exception { assertEquals("", new MMapURI("http: assertEquals("", new MMapURI("http: assertEquals("abc", new MMapURI("http: assertEquals("ABC", new MMapURI("http: assertEquals("ABC", new MMapURI("http: assertEquals("ABC", new MMapURI("http: }
@Nonnull public String getExtension() { String text = this.uri.getPath(); final int lastSlash = text.lastIndexOf('/'); if (lastSlash >= 0) { text = text.substring(lastSlash + 1); } String result = ""; if (!text.isEmpty()) { final int dotIndex = text.lastIndexOf('.'); if (dotIndex >= 0) { result = text.substring(dotIndex + 1); } } return result; }
MMapURI implements Serializable { @Nonnull public String getExtension() { String text = this.uri.getPath(); final int lastSlash = text.lastIndexOf('/'); if (lastSlash >= 0) { text = text.substring(lastSlash + 1); } String result = ""; if (!text.isEmpty()) { final int dotIndex = text.lastIndexOf('.'); if (dotIndex >= 0) { result = text.substring(dotIndex + 1); } } return result; } }
MMapURI implements Serializable { @Nonnull public String getExtension() { String text = this.uri.getPath(); final int lastSlash = text.lastIndexOf('/'); if (lastSlash >= 0) { text = text.substring(lastSlash + 1); } String result = ""; if (!text.isEmpty()) { final int dotIndex = text.lastIndexOf('.'); if (dotIndex >= 0) { result = text.substring(dotIndex + 1); } } return result; } 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); }
MMapURI implements Serializable { @Nonnull public String getExtension() { String text = this.uri.getPath(); final int lastSlash = text.lastIndexOf('/'); if (lastSlash >= 0) { text = text.substring(lastSlash + 1); } String result = ""; if (!text.isEmpty()) { final int dotIndex = text.lastIndexOf('.'); if (dotIndex >= 0) { result = text.substring(dotIndex + 1); } } return result; } 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(); }
MMapURI implements Serializable { @Nonnull public String getExtension() { String text = this.uri.getPath(); final int lastSlash = text.lastIndexOf('/'); if (lastSlash >= 0) { text = text.substring(lastSlash + 1); } String result = ""; if (!text.isEmpty()) { final int dotIndex = text.lastIndexOf('.'); if (dotIndex >= 0) { result = text.substring(dotIndex + 1); } } return result; } 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; }