private static boolean sameTargetedNotifs(TargetedNotification[] tn1,
TargetedNotification[] tn2) {
if (tn1.length != tn2.length) {
System.out.println("Not same length");
return false;
}
for (int i = 0; i < tn1.length; i++) {
TargetedNotification n1 = tn1[i];
TargetedNotification n2 = tn2[i];
if (n1.getNotification() != n2.getNotification()
|| !n1.getListenerID().equals(n2.getListenerID()))
return false;
}
return true;
}
NotificationBufferTest.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:jdk8u-jdk
作者:
评论列表
文章目录