Class IDRange

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

    public class IDRange
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    IDRange provides a min/max of an allowed range of IDs.
    • Nested Class Summary

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

      Constructors 
      Constructor Description
      IDRange()  
      IDRange​(@NonNull java.lang.Number max, @NonNull java.lang.Number min)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static IDRange.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.Number getMax()
      max is the end of the range, inclusive.
      @NonNull java.lang.Number getMin()
      min is the start of the range, inclusive.
      int hashCode()  
      void setMax​(@NonNull java.lang.Number max)
      max is the end of the range, inclusive.
      void setMin​(@NonNull java.lang.Number min)
      min is the start of the range, inclusive.
      IDRange.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • IDRange

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

        public IDRange()
    • 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