/** * Gets the next available suffix for a provided shortLabel * * @param shortLabel Can already have a suffix or not. * @return The next available shortLabel */ public static String nextAvailableShortlabel( String shortLabel ) { Integer nextSuffix = calculateNextSuffix( shortLabel ); InteractionShortLabel label = new InteractionShortLabel( shortLabel ); if ( nextSuffix != null ) { label.setSuffix( nextSuffix ); } return label.getCompleteLabel(); }
/** * Gets the next available suffix for a provided shortLabel * * @param shortLabel Can already have a suffix or not. * @return The next available shortLabel */ public static String nextAvailableShortlabel( String shortLabel ) { Integer nextSuffix = calculateNextSuffix( shortLabel ); InteractionShortLabel label = new InteractionShortLabel( shortLabel ); if ( nextSuffix != null ) { label.setSuffix( nextSuffix ); } return label.getCompleteLabel(); }
/** * Gets the next available suffix for a provided shortLabel * * @param shortLabel Can already have a suffix or not. * * @return The next available shortLabel */ public static String nextAvailableShortlabel(String shortLabel) { Integer nextSuffix = calculateNextSuffix(shortLabel); InteractionShortLabel label = new InteractionShortLabel(shortLabel); if (nextSuffix != null) { label.setSuffix(nextSuffix); } return label.getCompleteLabel(); }