public class TimeChunker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeChunker.Chunks |
static class |
TimeChunker.TimeChunk |
Modifier and Type | Field and Description |
---|---|
static int |
DAILY |
static int |
HOURLY |
static int |
MINUTE |
Constructor and Description |
---|
TimeChunker(long resolution,
Date startDate,
Date endDate) |
Modifier and Type | Method and Description |
---|---|
TimeChunker.TimeChunk |
getAt(int index) |
Date |
getEndDate() |
long |
getIndexContaining(Date timestamp) |
TimeChunker.TimeChunk |
getNextSegment() |
int |
getSegmentCount() |
Date |
getStartDate() |
boolean |
hasNext() |
void |
throwChunks() |
public static final int MINUTE
public static final int HOURLY
public static final int DAILY
public int getSegmentCount()
public boolean hasNext()
public TimeChunker.TimeChunk getNextSegment()
public TimeChunker.TimeChunk getAt(int index)
public long getIndexContaining(Date timestamp)
public void throwChunks() throws TimeChunker.Chunks
TimeChunker.Chunks
public Date getStartDate()
public Date getEndDate()
Copyright © 2021. All rights reserved.