From ba7ea6eda8b1b520689cc36a0d169a878cbf3186 Mon Sep 17 00:00:00 2001 From: richie Date: Thu, 26 Jul 2018 09:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/gui/ilist/ListModelElement.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/gui/ilist/ListModelElement.java b/designer-base/src/main/java/com/fr/design/gui/ilist/ListModelElement.java index 73a5a3f09..9a97cafcb 100644 --- a/designer-base/src/main/java/com/fr/design/gui/ilist/ListModelElement.java +++ b/designer-base/src/main/java/com/fr/design/gui/ilist/ListModelElement.java @@ -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); } } \ No newline at end of file +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); + } +} \ No newline at end of file