Class IdNextTreatment

  • All Implemented Interfaces:
    NextTreatment

    public final class IdNextTreatment
    extends Object
    implements NextTreatment
    Represents a next action specified by next id.
    • Method Detail

      • nextId

        public int nextId()
        Returns next id.
        Returns:
        next id
      • of

        public static IdNextTreatment of​(int nextId)
        Returns an instance of IdNextTreatment with given next id.
        Parameters:
        nextId - next id
        Returns:
        an instance of IdNextTreatment
      • of

        public static IdNextTreatment of​(int nextId,
                                         int weight)
        Returns an instance of IdNextTreatment with given next id and weight.
        Parameters:
        nextId - next id
        weight - weight
        Returns:
        an instance of IdNextTreatment
      • weight

        public int weight()
        Description copied from interface: NextTreatment
        weight of this next action.
        Specified by:
        weight in interface NextTreatment
        Returns:
        weight
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object