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

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

Introduction

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

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the quarter.

Usage

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

/**
 * Some checks for the getSerialIndex() method.
 *//*  ww  w  . j  a v  a 2s .  c  om*/
@Test
public void testGetSerialIndex() {
    Quarter q = new Quarter(1, 2000);
    assertEquals(8001L, q.getSerialIndex());
    q = new Quarter(1, 1900);
    assertEquals(7601L, q.getSerialIndex());
}