删除已完成的 TODO

1.x.x
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) {
return Objects.equals(getCode(), code);
}
default boolean equalsCode(IWithCode<?> obj) { // TODO 单元测试
default boolean equalsCode(IWithCode<?> obj) {
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());
}
default boolean equalsCode(IWithLongCode obj) { // TODO 单元测试
default boolean equalsCode(IWithLongCode obj) {
return obj != null && getCode().equals(obj.getCode());
}
}

View File

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

View File

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