Class EvProbF
java.lang.Object
io.nosqlbench.virtdata.library.basics.core.stathelpers.EvProbF
- All Implemented Interfaces:
java.lang.Comparable<EvProbF>
public class EvProbF extends java.lang.Object implements java.lang.Comparable<EvProbF>
A simple wrapper type for "Event Probability", where the event is identified by a unique int,
and the probability is represented with single precision floating-point.
-
Constructor Summary
Constructors Constructor Description EvProbF(int eventId, float probability) -
Method Summary
Modifier and Type Method Description intcompareTo(EvProbF other)intgetEventId()floatgetProbability()java.lang.StringtoString()
-
Constructor Details
-
EvProbF
public EvProbF(int eventId, float probability)
-
-
Method Details
-
getProbability
public float getProbability() -
getEventId
public int getEventId() -
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<EvProbF>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-