@Test public void testShouldReturnEmptyStringIfAtIsLastSymbol() throws Exception { assertEquals("", getAfterAt("test@")); assertEquals("", getAfterAt("@")); assertEquals("", getAfterAt("wetwegdfgsdfgsfdgsdfg@")); }
@Nullable public static String getAfterAt(@Nonnull String s) { final int index = s.indexOf(AT); if (index < 0) { return null; } else { return s.substring(index + 1); } }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Nullable public static String getAfterAt(@Nonnull String s) { final int index = s.indexOf(AT); if (index < 0) { return null; } else { return s.substring(index + 1); } } }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Nullable public static String getAfterAt(@Nonnull String s) { final int index = s.indexOf(AT); if (index < 0) { return null; } else { return s.substring(index + 1); } } XmppAccountConfiguration();  XmppAccountConfiguration(@Nonnull String server, @Nonnull String login, @Nonnull String password); }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Nullable public static String getAfterAt(@Nonnull String s) { final int index = s.indexOf(AT); if (index < 0) { return null; } else { return s.substring(index + 1); } } XmppAccountConfiguration();  XmppAccountConfiguration(@Nonnull String server, @Nonnull String login, @Nonnull String password); @Nonnull String getAccountUserId(); @Nullable String getDomain(); @Nonnull String getServer(); @Nonnull String getLogin(); @Nonnull String getLoginForConnection(); @Nonnull String getPassword(); @Nonnull XmppSecurityMode getSecurityMode(); void setSecurityMode(@Nonnull XmppSecurityMode securityMode); boolean isUseLoginWithDomain(); void setUseLoginWithDomain(boolean useLoginWithDomain); @Nonnull String getResource(); @Nonnull Integer getPort(); @Nonnull AndroidConnectionConfiguration toXmppConfiguration(); @Override boolean isSameAccount(AccountConfiguration c); @Override boolean isSameCredentials(AccountConfiguration c); @Override boolean isSame(AccountConfiguration c); @Override void applySystemData(AccountConfiguration oldConfiguration); @Nonnull static XmppAccountConfiguration fromJson(@Nonnull String json); @Nonnull @Override XmppAccountConfiguration clone(); void setPassword(@Nonnull String password); @Nullable static String getAfterAt(@Nonnull String s); @Nonnull static String getBeforeAt(@Nonnull String s); }
XmppAccountConfiguration extends JObject implements AccountConfiguration { @Nullable public static String getAfterAt(@Nonnull String s) { final int index = s.indexOf(AT); if (index < 0) { return null; } else { return s.substring(index + 1); } } XmppAccountConfiguration();  XmppAccountConfiguration(@Nonnull String server, @Nonnull String login, @Nonnull String password); @Nonnull String getAccountUserId(); @Nullable String getDomain(); @Nonnull String getServer(); @Nonnull String getLogin(); @Nonnull String getLoginForConnection(); @Nonnull String getPassword(); @Nonnull XmppSecurityMode getSecurityMode(); void setSecurityMode(@Nonnull XmppSecurityMode securityMode); boolean isUseLoginWithDomain(); void setUseLoginWithDomain(boolean useLoginWithDomain); @Nonnull String getResource(); @Nonnull Integer getPort(); @Nonnull AndroidConnectionConfiguration toXmppConfiguration(); @Override boolean isSameAccount(AccountConfiguration c); @Override boolean isSameCredentials(AccountConfiguration c); @Override boolean isSame(AccountConfiguration c); @Override void applySystemData(AccountConfiguration oldConfiguration); @Nonnull static XmppAccountConfiguration fromJson(@Nonnull String json); @Nonnull @Override XmppAccountConfiguration clone(); void setPassword(@Nonnull String password); @Nullable static String getAfterAt(@Nonnull String s); @Nonnull static String getBeforeAt(@Nonnull String s);  }