- Common ways to obtain InteractionShortLabelGenerator$InteractionShortLabel
private void myMethod () {InteractionShortLabelGenerator$InteractionShortLabel i =
String completeLabel;new InteractionShortLabel(completeLabel)
String baitLabel;String preyLabel;Integer suffix;new InteractionShortLabel(baitLabel, preyLabel, suffix)
- Smart code suggestions by Codota
}
public String getCompleteLabel(boolean includeSuffix) { truncateLabelsIfNecessary(); String strPrey = ""; if (preyLabel != null) { //not a self-interaction strPrey = INTERACTION_SEPARATOR + preyLabel; } String strSuffix = ""; if (includeSuffix && suffix != null) { strSuffix = INTERACTION_SEPARATOR + suffix; } String complete = baitLabel + strPrey + strSuffix; return complete; }
public String getCompleteLabel( boolean includeSuffix ) { if (!isValid){ return this.originalLabel; } truncateLabelsIfNecessary(); String strPrey = ""; if ( preyLabel != null ) { //not a self-interaction strPrey = INTERACTION_SEPARATOR + preyLabel; } String strSuffix = ""; if ( includeSuffix && suffix != null ) { strSuffix = INTERACTION_SEPARATOR + suffix; } String complete = baitLabel + strPrey + strSuffix; return complete; }
public String getCompleteLabel( boolean includeSuffix ) { if (!isValid){ return this.originalLabel; } truncateLabelsIfNecessary(); String strPrey = ""; if ( preyLabel != null ) { //not a self-interaction strPrey = INTERACTION_SEPARATOR + preyLabel; } String strSuffix = ""; if ( includeSuffix && suffix != null ) { strSuffix = INTERACTION_SEPARATOR + suffix; } String complete = baitLabel + strPrey + strSuffix; return complete; }