Class HostPortRange

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class HostPortRange
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. Deprecated: use HostPortRange from policy API Group instead.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HostPortRange.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      HostPortRange()  
      HostPortRange​(@NonNull java.lang.Number max, @NonNull java.lang.Number min)  
    • Constructor Detail

      • HostPortRange

        public HostPortRange​(@NonNull
                             @NonNull java.lang.Number max,
                             @NonNull
                             @NonNull java.lang.Number min)
      • HostPortRange

        public HostPortRange()
    • Method Detail

      • getMax

        @NonNull
        public @NonNull java.lang.Number getMax()
        max is the end of the range, inclusive.
      • getMin

        @NonNull
        public @NonNull java.lang.Number getMin()
        min is the start of the range, inclusive.
      • setMax

        public void setMax​(@NonNull
                           @NonNull java.lang.Number max)
        max is the end of the range, inclusive.
      • setMin

        public void setMin​(@NonNull
                           @NonNull java.lang.Number min)
        min is the start of the range, inclusive.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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