IndicatorInstance implements Comparable<IndicatorInstance>, Serializable { @JsonIgnore private String generateName() { return generateName(StringUtils.substringAfterLast(classname, ".")); } IndicatorInstance();  IndicatorInstance(String classname, Integer timeframe1, Integer timeframe2, Integer timeframe3, boolean overlay); @Override boolean equals(Object key); @JsonIgnore String getName(); @JsonIgnore String generateName(String name); @Override int compareTo(IndicatorInstance that); @Override int hashCode(); @Override String toString(); Integer getTimeframe1(); void setTimeframe1(Integer timeframe1); Integer getTimeframe2(); void setTimeframe2(Integer timeframe2); Integer getTimeframe3(); void setTimeframe3(Integer timeframe3); String getClassname(); void setClassname(String classname); boolean isOverlay(); void setOverlay(boolean overlay); IndicatorClientDefinition getClientIndicator();  }
@Test public void testGenerateName() throws Exception { logger.info(new IndicatorInstance("indicator.one", 5, 6, 7, false).getName()); logger.info(new IndicatorInstance("indicator.two", 5, 6, null, false).getName()); logger.info(new IndicatorInstance("indicator.three", 5, null, null, false).getName()); logger.info(new IndicatorInstance("indicator.four", null, null, null, false).getName()); }