forked from fanruan/design
richie
7 years ago
1 changed files with 19 additions and 1 deletions
@ -1 +1,19 @@ |
|||||||
package com.fr.design.gui.ilist;
import com.fr.general.ComparatorUtils;
import com.fr.stable.Nameable;
public class ListModelElement {
public Nameable wrapper;
public ListModelElement(Nameable nameable) {
this.wrapper = nameable;
}
public boolean equals(Object o) {
return o instanceof ListModelElement
&& ComparatorUtils.equals(((ListModelElement) o).wrapper, wrapper);
}
} |
package com.fr.design.gui.ilist; |
||||||
|
|
||||||
|
import com.fr.general.ComparatorUtils; |
||||||
|
import com.fr.stable.Nameable; |
||||||
|
|
||||||
|
|
||||||
|
public class ListModelElement { |
||||||
|
|
||||||
|
public Nameable wrapper; |
||||||
|
|
||||||
|
public ListModelElement(Nameable nameable) { |
||||||
|
this.wrapper = nameable; |
||||||
|
} |
||||||
|
|
||||||
|
public boolean equals(Object o) { |
||||||
|
return o instanceof ListModelElement |
||||||
|
&& ComparatorUtils.equals(((ListModelElement) o).wrapper, wrapper); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue