Skip to content

Commit 8ff92bd

Browse files
author
a-panizza_globant
committed
- Add HasAny method to message collection.
1 parent e6c04cf commit 8ff92bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/src/main/java/com/genexus/internet/MsgList.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ public void removeAllItems()
9898
removeAllElements();
9999
}
100100

101+
public boolean hasAny(String msgId)
102+
{
103+
return this.stream().anyMatch(item -> msgId.equals(item.getId()));
104+
}
105+
101106
private short displayMode = 1;
102107

103108
public void setDisplaymode(short displayMode)

0 commit comments

Comments
 (0)