001package org.javasimon.callback.timeline; 002 003/** 004 * Snapshot of timeline state 005 * 006 * @author gerald 007 */ 008public class TimelineSample<TR extends TimeRange> { 009 private final int capacity; 010 private final long width; 011 private final TR[] timeRanges; 012 013 public TimelineSample(int capacity, long width, TR[] timeRanges) { 014 this.capacity = capacity; 015 this.width = width; 016 this.timeRanges = timeRanges; 017 } 018 019 public int getCapacity() { 020 return capacity; 021 } 022 023 public long getWidth() { 024 return width; 025 } 026 027 public TR[] getTimeRanges() { 028 return timeRanges; 029 } 030 031}