Class IpRangeV6Impl
java.lang.Object
com.biglybt.core.ipfilter.impl.IpRangeImpl
com.biglybt.core.ipfilter.impl.IpRangeV6Impl
- All Implemented Interfaces:
IpRange
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate byte[]private intprivate byte[]Fields inherited from class IpRangeImpl
FLAG_ADDED_TO_RANGE_LIST, FLAG_INVALID, FLAG_INVALID_END, FLAG_INVALID_START, FLAG_SESSION_ONLY, flags -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIpRangeV6Impl(String desc, String start, String end, boolean session) protectedIpRangeV6Impl(String desc, Inet6Address address, boolean session) -
Method Summary
Modifier and TypeMethodDescriptionprivate intcompare(byte[] s1, byte[] s2, int len) intcompareEndIpTo(IpRange other) intcompareStartIpTo(IpRange other) getEndIp()private Stringprivate Inet6AddressgetLiteralAddress(String str) private Stringprotected intprotected byte[]protected booleanisInRange(byte[] bytes) booleanprotected booleanisV4()booleanisValid()voidprivate voidsetEndSupport(String str) voidsetStartIp(String str) private voidsetStartSupport(String str) toString()Methods inherited from class IpRangeImpl
checkValid, compareDescription, getAddedToRangeList, getDescRef, getDescription, isSessionOnly, setAddedToRangeList, setDescRef, setDescription, setSessionOnly
-
Field Details
-
start_prefix
private byte[] start_prefix -
end_prefix
private byte[] end_prefix -
start_mask
private int start_mask -
end_mask
private int end_mask
-
-
Constructor Details
-
IpRangeV6Impl
-
IpRangeV6Impl
-
-
Method Details
-
isV4
protected boolean isV4()- Specified by:
isV4in classIpRangeImpl
-
isValid
public boolean isValid() -
getLiteralAddress
- Throws:
Exception
-
setStartSupport
-
setEndSupport
-
getStartIp
-
getStartIpSlow
-
getStartPrefix
protected byte[] getStartPrefix() -
getStartMask
protected int getStartMask() -
setStartIp
-
getEndIp
-
getEndIpSlow
-
setEndIp
-
isInRange
-
isInRange
protected boolean isInRange(byte[] bytes) -
compare
private int compare(byte[] s1, byte[] s2, int len) -
compareStartIpTo
-
compareEndIpTo
-
toString
- Overrides:
toStringin classIpRangeImpl
-
getStringSlow
-