Package com.biglybt.core.ipfilter.impl
Class IpRangeV4Impl
java.lang.Object
com.biglybt.core.ipfilter.impl.IpRangeImpl
com.biglybt.core.ipfilter.impl.IpRangeV4Impl
- All Implemented Interfaces:
IpRange
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte
private int
private int
private int
private IpRangeV4Impl[]
Fields inherited from class com.biglybt.core.ipfilter.impl.IpRangeImpl
FLAG_ADDED_TO_RANGE_LIST, FLAG_INVALID, FLAG_INVALID_END, FLAG_INVALID_START, FLAG_SESSION_ONLY, flags
-
Constructor Summary
ConstructorsConstructorDescriptionIpRangeV4Impl
(String _description, int _startIp, int _endIp, boolean _sessionOnly) IpRangeV4Impl
(String _description, String _startIp, String _endIp, boolean _sessionOnly) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
int
compareEndIpTo
(IpRange other) int
compareStartIpTo
(IpRange other) getEndIp()
protected long
protected boolean
protected long
protected IpRangeV4Impl[]
protected long
boolean
protected final boolean
isV4()
boolean
isValid()
protected void
void
protected void
protected void
setMergedEnd
(long endIpLong) void
setStartIp
(String str) Methods inherited from class com.biglybt.core.ipfilter.impl.IpRangeImpl
checkValid, compareDescription, getAddedToRangeList, getDescRef, getDescription, isSessionOnly, setAddedToRangeList, setDescRef, setDescription, setSessionOnly, toString
-
Field Details
-
ipStart
private int ipStart -
ipEnd
private int ipEnd -
FLAG_MERGED
private static final byte FLAG_MERGED- See Also:
-
merged_end
private int merged_end -
my_merged_entries
-
-
Constructor Details
-
IpRangeV4Impl
-
IpRangeV4Impl
-
-
Method Details
-
isV4
protected final boolean isV4()- Specified by:
isV4
in classIpRangeImpl
-
isValid
public boolean isValid() -
isInRange
-
getStartIp
-
getStartIpLong
protected long getStartIpLong() -
setStartIp
-
getEndIp
-
getEndIpLong
protected long getEndIpLong() -
setEndIp
-
compareStartIpTo
-
compareEndIpTo
-
getMergedEndLong
protected long getMergedEndLong() -
getMergedEntries
-
resetMergeInfo
protected void resetMergeInfo() -
getMerged
protected boolean getMerged() -
setMerged
protected void setMerged() -
setMergedEnd
protected void setMergedEnd(long endIpLong) -
addMergedEntry
-
getStringSlow
-