Module inet.ipaddr
Package inet.ipaddr.format.util
Class IPAddressPartConfiguredString<T extends IPAddressStringDivisionSeries,P extends IPAddressStringWriter<T>>
java.lang.Object
inet.ipaddr.format.util.IPAddressPartConfiguredString<T,P>
- Type Parameters:
T
- the type of the address part from which this configurable string was derivedP
- the type of the params used to generate the string
public class IPAddressPartConfiguredString<T extends IPAddressStringDivisionSeries,P extends IPAddressStringWriter<T>>
extends Object
Pairs a part of an IP address along with an instance of a parameter class to define a specific string.
- Author:
- sfoley
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S extends IPAddressPartConfiguredString<T,
P>>
SQLStringMatcher<T, P, S> getNetworkStringMatcher
(boolean isEntireAddress, IPAddressSQLTranslator translator) Provides an object that can build SQL clauses to match this string representation.char
int
toString()
-
Field Details
-
addr
-
stringParams
-
-
Constructor Details
-
IPAddressPartConfiguredString
-
-
Method Details
-
getTrailingSeparatorCount
public int getTrailingSeparatorCount() -
getTrailingSegmentSeparator
public char getTrailingSegmentSeparator() -
getNetworkStringMatcher
public <S extends IPAddressPartConfiguredString<T,P>> SQLStringMatcher<T,P, getNetworkStringMatcherS> (boolean isEntireAddress, IPAddressSQLTranslator translator) Provides an object that can build SQL clauses to match this string representation. This method can be overridden for other IP address types to match in their own ways.- Parameters:
isEntireAddress
-translator
-- Returns:
-
getString
-
toString
-