0
点赞
收藏
分享

微信扫一扫

Java拾遗

紫荆峰 2022-10-08 阅读 162


signalAll in Condition interface vs notifyAll in object
​​​http://stackoverflow.com/questions/10407708/signalall-in-condition-interface-vs-notifyall-in-object​​​
条件Condition中的signalALL 和 Object中的 notifyALL有啥区别?

Java中重写equals方法

public boolean equals(Objects x){
if(this == x) return true;
if(x == null) return false;
if(this.getClass() != x.getClass()) return false;
Date that = (Date) x;
if(this.day != that.day) return false;

return true;
}


举报

相关推荐

0 条评论