@Test void testSurfaceImmutable() { TokenElement token = new TokenElement("foobar", java.util.Arrays.asList("tag"), 0); String surface = token.getSurface(); surface = "baz"; assertEquals("foobar", token.getSurface()); }
public String getSurface() { return surface; }
TokenElement implements Serializable { public String getSurface() { return surface; } }
TokenElement implements Serializable { public String getSurface() { return surface; } TokenElement(String word, List<String> tagList, int offset, String reading);  TokenElement(String word, List<String> tagList, int offset); }
TokenElement implements Serializable { public String getSurface() { return surface; } TokenElement(String word, List<String> tagList, int offset, String reading);  TokenElement(String word, List<String> tagList, int offset); String getSurface(); List<String> getTags(); int getOffset(); String getReading(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
TokenElement implements Serializable { public String getSurface() { return surface; } TokenElement(String word, List<String> tagList, int offset, String reading);  TokenElement(String word, List<String> tagList, int offset); String getSurface(); List<String> getTags(); int getOffset(); String getReading(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }