Package net.azib.ipscan.core.values

Examples of net.azib.ipscan.core.values.IntegerWithUnit.compareTo()


    assertEquals(0, new IntegerWithUnit(1, null).compareTo(new IntegerWithUnit(1, null)));
    assertEquals(1, new IntegerWithUnit(123456789, null).compareTo(new IntegerWithUnit(123456, null)));
    assertEquals(-1, new IntegerWithUnit(12, null).compareTo(new IntegerWithUnit(123456, null)));
    assertEquals(1, new IntegerWithUnit(12, null).compareTo(null));
    IntegerWithUnit instance = new IntegerWithUnit(211082, null);
    assertEquals(0, instance.compareTo(instance));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.