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

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

Introduction

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

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the week.

Usage

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

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