Normal
wenn ich das richtig sehe, hat er das doch ???:L@to: add liefert auch einen boolean:[code=Java]import java.util.*;public class Test { public static void main(String[] args) { Set<Test> set = new HashSet<Test>(); System.out.println(set.add(new Test())); System.out.println(set.add(new Test())); } @Override public int hashCode() { return 1; } @Override public boolean equals(Object o) { return true; }}[/code]
wenn ich das richtig sehe, hat er das doch ???:L
@to: add liefert auch einen boolean:
[code=Java]
import java.util.*;
public class Test {
public static void main(String[] args) {
Set<Test> set = new HashSet<Test>();
System.out.println(set.add(new Test()));
}
@Override
public int hashCode() {
return 1;
public boolean equals(Object o) {
return true;
}[/code]