删除已完成的 TODO

pull/1/head
ZhouXY108 2024-12-25 21:30:11 +08:00
parent b37263f95c
commit 767217a143
3 changed files with 9 additions and 9 deletions

View File

@ -34,15 +34,15 @@ public interface IWithCode<T> {
default boolean equalsCode(T code) { default boolean equalsCode(T code) {
return Objects.equals(getCode(), code); return Objects.equals(getCode(), code);
} }
default boolean equalsCode(IWithCode<?> obj) { // TODO 单元测试 default boolean equalsCode(IWithCode<?> obj) {
return obj != null && obj.getCode().equals(getCode()); return obj != null && obj.getCode().equals(getCode());
} }
default boolean equalsCode(IWithIntCode obj) { // TODO 单元测试 default boolean equalsCode(IWithIntCode obj) {
return obj != null && getCode().equals(obj.getCode()); return obj != null && getCode().equals(obj.getCode());
} }
default boolean equalsCode(IWithLongCode obj) { // TODO 单元测试 default boolean equalsCode(IWithLongCode obj) {
return obj != null && getCode().equals(obj.getCode()); return obj != null && getCode().equals(obj.getCode());
} }
} }

View File

@ -30,15 +30,15 @@ public interface IWithIntCode {
return getCode() == code; return getCode() == code;
} }
default boolean equalsCode(IWithCode<?> obj) { // TODO 单元测试 default boolean equalsCode(IWithCode<?> obj) {
return obj != null && obj.getCode().equals(getCode()); return obj != null && obj.getCode().equals(getCode());
} }
default boolean equalsCode(IWithIntCode obj) { // TODO 单元测试 default boolean equalsCode(IWithIntCode obj) {
return obj != null && getCode() == obj.getCode(); return obj != null && getCode() == obj.getCode();
} }
default boolean equalsCode(IWithLongCode obj) { // TODO 单元测试 default boolean equalsCode(IWithLongCode obj) {
return obj != null && getCode() == obj.getCode(); return obj != null && getCode() == obj.getCode();
} }
} }

View File

@ -30,15 +30,15 @@ public interface IWithLongCode {
return getCode() == code; return getCode() == code;
} }
default boolean equalsCode(IWithCode<?> obj) { // TODO 单元测试 default boolean equalsCode(IWithCode<?> obj) {
return obj != null && obj.getCode().equals(getCode()); return obj != null && obj.getCode().equals(getCode());
} }
default boolean equalsCode(IWithIntCode obj) { // TODO 单元测试 default boolean equalsCode(IWithIntCode obj) {
return obj != null && getCode() == obj.getCode(); return obj != null && getCode() == obj.getCode();
} }
default boolean equalsCode(IWithLongCode obj) { // TODO 单元测试 default boolean equalsCode(IWithLongCode obj) {
return obj != null && getCode() == obj.getCode(); return obj != null && getCode() == obj.getCode();
} }
} }