Package opennlp.tools.ml.model

# Class ComparableEvent

java.lang.Object
opennlp.tools.ml.model.ComparableEvent

All Implemented Interfaces:
  `Comparable<ComparableEvent>`

public class ComparableEvent extends Object implements Comparable<ComparableEvent>
A maxent event representation which we can use to sort based on the predicates indexes contained in the events.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final int`
  `outcome`
  `final int[]`
  `predIndexes`
  `int`
  `seen`
  `final float[]`
  `values`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ComparableEvent(int oc, int[] pids)`
  `ComparableEvent(int oc, int[] pids, float[] values)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(ComparableEvent ce)`
  `boolean`
  `equals(Object obj)`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### outcome

    public final int outcome

  - ### predIndexes

    public final int[] predIndexes

  - ### seen

    public int seen

  - ### values

    public final float[] values

- ## Constructor Details

  - ### ComparableEvent

    public ComparableEvent(int oc, int[] pids, float[] values)

  - ### ComparableEvent

    public ComparableEvent(int oc, int[] pids)

- ## Method Details

  - ### compareTo

    public int compareTo(ComparableEvent ce)
    Specified by:
      `compareTo` in interface `Comparable<ComparableEvent>`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`