Package org.freeplane.features.format

Examples of org.freeplane.features.format.FormattedNumber.compareTo()


    assertEquals(-1, formattedNumber1.compareTo(formattedNumber2));
    assertEquals(-1, formattedNumberNull.compareTo(formattedNumber2));
    assertEquals(1, formattedNumber1.compareTo(null));

    assertEquals(1, number2.compareTo(number1));
    assertEquals(1, formattedNumber2.compareTo(formattedNumber1));
    // NPE (OK - only limited support for nulls): assertEquals(1, formattedNumber2.compareTo(formattedNumberNull));
    assertEquals(-1, formattedNumberNull.compareTo(formattedNumber1));
  }
}
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.