List of usage examples for java.lang Long compareUnsigned
public static int compareUnsigned(long x, long y)
From source file:org.apache.metron.pcap.integration.PcapTopologyIntegrationTest.java
public static void assertInOrder(Iterable<byte[]> packets) { long previous = 0; for (byte[] packet : packets) { for (JSONObject json : TO_JSONS.apply(packet)) { Long current = Long.parseLong(json.get("ts_micro").toString()); Assert.assertNotNull(current); Assert.assertTrue(Long.compareUnsigned(current, previous) >= 0); previous = current;//from w w w . j a v a 2 s. c o m } } }