@Test public void testToString() { Language lang = new Language("aLang"); Assert.assertEquals("aLang (0.0)", lang.toString()); lang = new Language("aLang", 0.0886678); Assert.assertEquals("aLang (0.0886678)", lang.toString()); }
@Override public String toString() { return getLang() + " (" + this.confidence + ")"; }
Language implements Serializable { @Override public String toString() { return getLang() + " (" + this.confidence + ")"; } }
Language implements Serializable { @Override public String toString() { return getLang() + " (" + this.confidence + ")"; } Language(String lang);  Language(String lang, double confidence); }
Language implements Serializable { @Override public String toString() { return getLang() + " (" + this.confidence + ")"; } Language(String lang);  Language(String lang, double confidence); String getLang(); double getConfidence(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
Language implements Serializable { @Override public String toString() { return getLang() + " (" + this.confidence + ")"; } Language(String lang);  Language(String lang, double confidence); String getLang(); double getConfidence(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }