Example usage for org.jfree.data.time FixedMillisecond getFirstMillisecond

List of usage examples for org.jfree.data.time FixedMillisecond getFirstMillisecond

Introduction

In this page you can find the example usage for org.jfree.data.time FixedMillisecond getFirstMillisecond.

Prototype

@Override
public long getFirstMillisecond() 

Source Link

Document

Returns the first millisecond of the time period.

Usage

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

/**
 * A check for immutability.//from  w  w w .  j  a  v  a  2 s. c  om
 */
@Test
public void testImmutability() {
    Date d = new Date(20L);
    FixedMillisecond fm = new FixedMillisecond(d);
    d.setTime(22L);
    assertEquals(20L, fm.getFirstMillisecond());
}