|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.stats.bin.CyclicSequence
public class CyclicSequence
| Constructor Summary | |
|---|---|
CyclicSequence(long cycleSize)
Create a BinSequence that will generate a sequence of regularly spaced intervals. |
|
| Method Summary | |
|---|---|
Bin |
getBin(Element element)
Get the Bin for the specified Element. |
Bin[] |
getBins(Element minElement,
Element maxElement)
Get a sequence of bins starting at minElement and ending with maxElement. |
Bin[] |
getBins(Element minElement,
Element maxElement,
boolean containsMin,
boolean containsMax)
Get a sequence of bins starting at minElement and ending with maxElement. |
Bin |
getNext(Bin bin)
Get the next bin in the sequence following the specified bin |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CyclicSequence(long cycleSize)
Create a BinSequence that will generate a sequence of regularly spaced intervals. CyclicSequence differs from RegularSequence in that the elements are assumed to be cyclic. For example, the elements involved may be days if the week, in which case we might be interested in a sequence starting on Monday and ending on Sunday, or one starting on Saturday and ending on Friday. A few modifications to the RegularSequence code are needed to handle the wrapping around of elements in mid-sequence.
cycleSize - The length of the cycle| Method Detail |
|---|
public Bin getBin(Element element)
getBin in interface BinSequenceelement - an Element to be placed in a Bin
public Bin getNext(Bin bin)
getNext in interface BinSequencebin - Current bin in the sequence
public Bin[] getBins(Element minElement,
Element maxElement)
Get a sequence of bins starting at minElement and ending with maxElement.
getBins in interface BinSequenceminElement - An element used to define the beginning of the sequencemaxElement - An element used to define the end of the sequence
public Bin[] getBins(Element minElement,
Element maxElement,
boolean containsMin,
boolean containsMax)
Get a sequence of bins starting at minElement and ending with maxElement.
getBins in interface BinSequenceminElement - An element used to define the beginning of the sequencemaxElement - An element used to define the end of the sequencecontainsMin - Should the list contain the first Bin?containsMax - Should the list contain the last Bin?
public static void main(java.lang.String[] args)
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||