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

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

Introduction

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

Prototype

@Override
public long getSerialIndex() 

Source Link

Document

Returns a serial index number for the hour.

Usage

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

/**
 * Some checks for the getSerialIndex() method.
 */// w  w w .jav a  2  s . c  o m
@Test
public void testGetSerialIndex() {
    Hour h = new Hour(1, 1, 1, 2000);
    assertEquals(876625L, h.getSerialIndex());
    h = new Hour(1, 1, 1, 1900);
    assertEquals(49L, h.getSerialIndex());
}

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

/**
 * Some checks for the getSerialIndex() method.
 *///from  w ww.  ja v  a2  s .  c om
public void testGetSerialIndex() {
    Hour h = new Hour(1, 1, 1, 2000);
    assertEquals(876625L, h.getSerialIndex());
    h = new Hour(1, 1, 1, 1900);
    assertEquals(49L, h.getSerialIndex());
}