Class 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
      int compareTo​(EvProbF other)  
      int getEventId()  
      float getProbability()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EvProbF

        public EvProbF​(int eventId,
                       float probability)
    • Method Detail

      • getProbability

        public float getProbability()
      • getEventId

        public int getEventId()
      • compareTo

        public int compareTo​(EvProbF other)
        Specified by:
        compareTo in interface java.lang.Comparable<EvProbF>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object