Class IPRangeImpl

java.lang.Object
com.biglybt.pifimpl.local.ipfilter.IPRangeImpl
All Implemented Interfaces:
IPRange, Comparable

public class IPRangeImpl extends Object implements IPRange
  • Field Details

  • Constructor Details

  • Method Details

    • getRange

      protected IpRange getRange()
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface IPRange
    • setDescription

      public void setDescription(String str)
      Specified by:
      setDescription in interface IPRange
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface IPRange
    • checkValid

      public void checkValid()
      Description copied from interface: IPRange
      For a range to be usable it has to be valid. To make it valid you have to call checkValid. Failure to do so will leave newly created ranges as invalid and therefore checks won't be made against it!!!!
      Specified by:
      checkValid in interface IPRange
    • isSessionOnly

      public boolean isSessionOnly()
      Specified by:
      isSessionOnly in interface IPRange
    • getStartIP

      public String getStartIP()
      Specified by:
      getStartIP in interface IPRange
    • setStartIP

      public void setStartIP(String str)
      Specified by:
      setStartIP in interface IPRange
    • getEndIP

      public String getEndIP()
      Specified by:
      getEndIP in interface IPRange
    • setEndIP

      public void setEndIP(String str)
      Specified by:
      setEndIP in interface IPRange
    • setSessionOnly

      public void setSessionOnly(boolean sessionOnly)
      Specified by:
      setSessionOnly in interface IPRange
    • isInRange

      public boolean isInRange(String ipAddress)
      Specified by:
      isInRange in interface IPRange
    • delete

      public void delete()
      Specified by:
      delete in interface IPRange
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(Object other)
      Specified by:
      compareTo in interface Comparable