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
public abstract class IpRangeImpl extends java.lang.Object implements IpRange
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
descRef
protected static byte
FLAG_ADDED_TO_RANGE_LIST
protected static byte
FLAG_INVALID
protected static byte
FLAG_INVALID_END
protected static byte
FLAG_INVALID_START
protected static byte
FLAG_SESSION_ONLY
protected byte
flags
-
Constructor Summary
Constructors Constructor Description IpRangeImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkValid()
int
compareDescription(IpRange other)
boolean
getAddedToRangeList()
protected java.lang.Object
getDescRef()
java.lang.String
getDescription()
boolean
isSessionOnly()
protected abstract boolean
isV4()
protected void
setAddedToRangeList(boolean b)
protected void
setDescRef(java.lang.Object descRef)
void
setDescription(java.lang.String str)
void
setSessionOnly(boolean _sessionOnly)
java.lang.String
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 Detail
-
FLAG_SESSION_ONLY
protected static final byte FLAG_SESSION_ONLY
- See Also:
- Constant Field Values
-
FLAG_ADDED_TO_RANGE_LIST
protected static final byte FLAG_ADDED_TO_RANGE_LIST
- See Also:
- Constant Field Values
-
FLAG_INVALID_START
protected static final byte FLAG_INVALID_START
- See Also:
- Constant Field Values
-
FLAG_INVALID_END
protected static final byte FLAG_INVALID_END
- See Also:
- Constant Field Values
-
FLAG_INVALID
protected static final byte FLAG_INVALID
- See Also:
- Constant Field Values
-
flags
protected byte flags
-
descRef
private java.lang.Object descRef
-
-
Method Detail
-
setAddedToRangeList
protected void setAddedToRangeList(boolean b)
-
getAddedToRangeList
public boolean getAddedToRangeList()
-
isV4
protected abstract boolean isV4()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceIpRange
-
setDescription
public void setDescription(java.lang.String str)
- Specified by:
setDescription
in interfaceIpRange
-
compareDescription
public int compareDescription(IpRange other)
- Specified by:
compareDescription
in interfaceIpRange
-
getDescRef
protected java.lang.Object getDescRef()
-
setDescRef
protected void setDescRef(java.lang.Object descRef)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
-
-