Class IpRangeImpl
java.lang.Object
com.biglybt.core.ipfilter.impl.IpRangeImpl
- All Implemented Interfaces:
IpRange
- Direct Known Subclasses:
IpRangeV4Impl, IpRangeV6Impl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Objectprotected static final byteprotected static final byteprotected static final byteprotected static final byteprotected static final byteprotected byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintcompareDescription(IpRange other) booleanprotected Objectbooleanprotected abstract booleanisV4()protected voidsetAddedToRangeList(boolean b) protected voidsetDescRef(Object descRef) voidsetDescription(String str) voidsetSessionOnly(boolean _sessionOnly) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IpRange
compareEndIpTo, compareStartIpTo, getEndIp, getStartIp, getStringSlow, isInRange, isValid, setEndIp, setStartIp
-
Field Details
-
FLAG_SESSION_ONLY
protected static final byte FLAG_SESSION_ONLY- See Also:
-
FLAG_ADDED_TO_RANGE_LIST
protected static final byte FLAG_ADDED_TO_RANGE_LIST- See Also:
-
FLAG_INVALID_START
protected static final byte FLAG_INVALID_START- See Also:
-
FLAG_INVALID_END
protected static final byte FLAG_INVALID_END- See Also:
-
FLAG_INVALID
protected static final byte FLAG_INVALID- See Also:
-
flags
protected byte flags -
descRef
-
-
Constructor Details
-
IpRangeImpl
public IpRangeImpl()
-
-
Method Details
-
setAddedToRangeList
protected void setAddedToRangeList(boolean b) -
getAddedToRangeList
public boolean getAddedToRangeList() -
isV4
protected abstract boolean isV4() -
getDescription
- Specified by:
getDescriptionin interfaceIpRange
-
setDescription
- Specified by:
setDescriptionin interfaceIpRange
-
compareDescription
- Specified by:
compareDescriptionin interfaceIpRange
-
getDescRef
-
setDescRef
-
toString
-
isSessionOnly
public boolean isSessionOnly()- Specified by:
isSessionOnlyin interfaceIpRange
-
setSessionOnly
public void setSessionOnly(boolean _sessionOnly) - Specified by:
setSessionOnlyin interfaceIpRange
-
checkValid
public void checkValid()- Specified by:
checkValidin interfaceIpRange
-