T
- Type of elementpublic static final class ProbabilityCollection.ProbabilitySetElement<T> extends Object
Indexes refer to the start position of this element's "block" of space. The space between element "block"s represents their probability of being selected
Modifier | Constructor and Description |
---|---|
protected |
ProbabilitySetElement(T object,
int probability) |
Modifier and Type | Method and Description |
---|---|
protected int |
getIndex() |
T |
getObject() |
int |
getProbability() |
protected int |
setIndex(int index) |
protected ProbabilitySetElement(T object, int probability)
object
- probability
- public final T getObject()
public final int getProbability()
protected final int getIndex()
protected final int setIndex(int index)
Copyright © 2020. All rights reserved.