forked from plusone/plusone-commons
删除已完成的 TODO
parent
b37263f95c
commit
767217a143
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue