Class DefaultNextTreatment

  • All Implemented Interfaces:
    NextTreatment

    public final class DefaultNextTreatment
    extends java.lang.Object
    implements NextTreatment
    Represents a next action specified by traffic treatment.
    • Method Detail

      • treatment

        public TrafficTreatment treatment()
        Returns traffic treatment.
        Returns:
        traffic treatment.
      • of

        public static DefaultNextTreatment of​(TrafficTreatment treatment)
        Returns an instance of DefaultNextTreatment with given traffic treatment.
        Parameters:
        treatment - traffic treatment
        Returns:
        an instance of DefaultNextTreatment
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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