}
public void add(T t, boolean check) {
//if (check) for(Object o : this) if (o.equals(t)) return;
- if (check) for(Object o : this) if (o==t) return;
+ if (check) {
+ if (only==t) return;
+ if (array != null)
+ for(int i=0; i<size; i++)
+ if (array[i]==t) return;
+ }
add(t);
}
public void add(T t) {