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

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

Introduction

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

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the day.

Usage

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

/**
 * Some checks for the getSerialIndex() method.
 *//*from   w  ww.  ja  v  a2 s  .  com*/
@Test
public void testGetSerialIndex() {
    Day d = new Day(1, 1, 1900);
    assertEquals(2, d.getSerialIndex());
    d = new Day(15, 4, 2000);
    assertEquals(36631, d.getSerialIndex());
}

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

/**
 * Some checks for the getSerialIndex() method.
 *///from  w w  w  .j  a va  2 s  .co m
public void testGetSerialIndex() {
    Day d = new Day(1, 1, 1900);
    assertEquals(2, d.getSerialIndex());
    d = new Day(15, 4, 2000);
    assertEquals(36631, d.getSerialIndex());
}