Module inet.ipaddr

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 derived
P - 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 Details

  • Constructor Details

    • IPAddressPartConfiguredString

      public IPAddressPartConfiguredString(T addr, P stringParams)
  • Method Details

    • getTrailingSeparatorCount

      public int getTrailingSeparatorCount()
    • getTrailingSegmentSeparator

      public char getTrailingSegmentSeparator()
    • getNetworkStringMatcher

      public <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. This method can be overridden for other IP address types to match in their own ways.
      Parameters:
      isEntireAddress -
      translator -
      Returns:
    • getString

      public String getString()
    • toString

      public String toString()
      Overrides:
      toString in class Object