Package com.biglybt.core.ipfilter.impl
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 Object
protected static final byte
protected static final byte
protected static final byte
protected static final byte
protected static final byte
protected byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
compareDescription
(IpRange other) boolean
protected Object
boolean
protected abstract boolean
isV4()
protected void
setAddedToRangeList
(boolean b) protected void
setDescRef
(Object descRef) void
setDescription
(String str) void
setSessionOnly
(boolean _sessionOnly) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.biglybt.core.ipfilter.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:
getDescription
in interfaceIpRange
-
setDescription
- Specified by:
setDescription
in interfaceIpRange
-
compareDescription
- Specified by:
compareDescription
in interfaceIpRange
-
getDescRef
-
setDescRef
-
toString
-
isSessionOnly
public boolean isSessionOnly()- Specified by:
isSessionOnly
in interfaceIpRange
-
setSessionOnly
public void setSessionOnly(boolean _sessionOnly) - Specified by:
setSessionOnly
in interfaceIpRange
-
checkValid
public void checkValid()- Specified by:
checkValid
in interfaceIpRange
-