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 TypeMethodDescriptionvoidFor a range to be usable it has to be valid.intvoiddelete()booleangetEndIP()protected IpRangegetRange()inthashCode()booleanbooleanbooleanisValid()voidsetDescription(String str) voidvoidsetSessionOnly(boolean sessionOnly) voidsetStartIP(String str)
-
Field Details
-
filter
-
range
-
-
Constructor Details
-
IPRangeImpl
-
-
Method Details
-
getRange
-
getDescription
- Specified by:
getDescriptionin interfaceIPRange
-
setDescription
- Specified by:
setDescriptionin interfaceIPRange
-
isValid
-
checkValid
public void checkValid()Description copied from interface:IPRangeFor 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:
checkValidin interfaceIPRange
-
isSessionOnly
public boolean isSessionOnly()- Specified by:
isSessionOnlyin interfaceIPRange
-
getStartIP
- Specified by:
getStartIPin interfaceIPRange
-
setStartIP
- Specified by:
setStartIPin interfaceIPRange
-
getEndIP
-
setEndIP
-
setSessionOnly
public void setSessionOnly(boolean sessionOnly) - Specified by:
setSessionOnlyin interfaceIPRange
-
isInRange
-
delete
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable
-