Back to project page libgdx-chat-example.
The source code is released under:
Apache License
If you think the Android project libgdx-chat-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.stofkat.chat.common.util; /* www .j a v a 2s. c o m*/ import java.util.Set; public class LowestIdFinder { public static Integer getLowestId(Set<Integer> chatMessages) { Integer lowestId = new Integer(Integer.MAX_VALUE); for (Integer id : chatMessages) { if (id.longValue() < lowestId) { lowestId = id; } } return lowestId; } }