Class IPRangeImpl
java.lang.Object
com.biglybt.pifimpl.local.ipfilter.IPRangeImpl
- All Implemented Interfaces:
IPRange
,Comparable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
For a range to be usable it has to be valid.int
void
delete()
boolean
getEndIP()
protected IpRange
getRange()
int
hashCode()
boolean
boolean
boolean
isValid()
void
setDescription
(String str) void
void
setSessionOnly
(boolean sessionOnly) void
setStartIP
(String str)
-
Field Details
-
filter
-
range
-
-
Constructor Details
-
IPRangeImpl
-
-
Method Details
-
getRange
-
getDescription
- Specified by:
getDescription
in interfaceIPRange
-
setDescription
- Specified by:
setDescription
in interfaceIPRange
-
isValid
public boolean isValid() -
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 interfaceIPRange
-
isSessionOnly
public boolean isSessionOnly()- Specified by:
isSessionOnly
in interfaceIPRange
-
getStartIP
- Specified by:
getStartIP
in interfaceIPRange
-
setStartIP
- Specified by:
setStartIP
in interfaceIPRange
-
getEndIP
-
setEndIP
-
setSessionOnly
public void setSessionOnly(boolean sessionOnly) - Specified by:
setSessionOnly
in interfaceIPRange
-
isInRange
-
delete
public void delete() -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable
-