MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / getFirstString

Method getFirstString

src/main/java/Client/Contact.java:703–717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

701 }
702
703 public String getFirstString() {
704 if (!cf.showResources) {
705 return (nick == null) ? jid.getBare() : nick;
706 }
707 if (origin > ORIGIN_GROUPCHAT) {
708 return nick;
709 }
710 if (origin == ORIGIN_GROUPCHAT) {
711 return getJid().toString();
712 }
713
714 return (nick == null) ? getJid().toString() : jid.resource.length() > 0 ?
715 nick + "/" + jid.resource
716 : nick;
717 }
718
719 public String getSecondString() {
720 if (cf.rosterStatus) {

Callers 4

getVWidthMethod · 0.95
toStringMethod · 0.95
getFirstLengthMethod · 0.95
drawItemMethod · 0.95

Calls 3

getJidMethod · 0.95
getBareMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected