Example usage for org.jfree.data.time Month getSerialIndex

List of usage examples for org.jfree.data.time Month getSerialIndex

Introduction

In this page you can find the example usage for org.jfree.data.time Month getSerialIndex.

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the month.

Usage

From source file:org.jfree.data.time.MonthTest.java

/**
 * Some checks for the getSerialIndex() method.
 *//*w  ww .j  av  a  2 s  . co  m*/
@Test
public void testGetSerialIndex() {
    Month m = new Month(1, 2000);
    assertEquals(24001L, m.getSerialIndex());
    m = new Month(1, 1900);
    assertEquals(22801L, m.getSerialIndex());
}

From source file:org.jfree.data.time.junit.MonthTest.java

/**
 * Some checks for the getSerialIndex() method.
 *///from w ww.  j  a  v  a  2 s  .  c om
public void testGetSerialIndex() {
    Month m = new Month(1, 2000);
    assertEquals(24001L, m.getSerialIndex());
    m = new Month(1, 1900);
    assertEquals(22801L, m.getSerialIndex());
}