Package org.opennms.web.rest.v1.support
Class TimeChunker
- java.lang.Object
-
- org.opennms.web.rest.v1.support.TimeChunker
-
public class TimeChunker extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeChunker.Chunks
static class
TimeChunker.TimeChunk
-
Constructor Summary
Constructors Constructor Description TimeChunker(long resolution, java.util.Date startDate, java.util.Date endDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeChunker.TimeChunk
getAt(int index)
java.util.Date
getEndDate()
long
getIndexContaining(java.util.Date timestamp)
TimeChunker.TimeChunk
getNextSegment()
int
getSegmentCount()
java.util.Date
getStartDate()
boolean
hasNext()
void
throwChunks()
-
-
-
Field Detail
-
MINUTE
public static final int MINUTE
- See Also:
- Constant Field Values
-
HOURLY
public static final int HOURLY
- See Also:
- Constant Field Values
-
DAILY
public static final int DAILY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSegmentCount
public int getSegmentCount()
-
hasNext
public boolean hasNext()
-
getNextSegment
public TimeChunker.TimeChunk getNextSegment()
-
getAt
public TimeChunker.TimeChunk getAt(int index)
-
getIndexContaining
public long getIndexContaining(java.util.Date timestamp)
-
throwChunks
public void throwChunks() throws TimeChunker.Chunks
- Throws:
TimeChunker.Chunks
-
getStartDate
public java.util.Date getStartDate()
-
getEndDate
public java.util.Date getEndDate()
-
-