Module inet.ipaddr

Class SQLStringMatcher<T extends IPAddressStringDivisionSeries,​P extends IPAddressStringWriter<T>,​S extends IPAddressPartConfiguredString<T,​P>>


  • public class SQLStringMatcher<T extends IPAddressStringDivisionSeries,​P extends IPAddressStringWriter<T>,​S extends IPAddressPartConfiguredString<T,​P>>
    extends java.lang.Object
    This class is intended to match part of an address when it is written with a given string. Note that a given address part can be written many ways. Also note that some of these representations can represent more than one address section.
    Author:
    sfoley
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuilder getSQLCondition​(java.lang.StringBuilder builder, java.lang.String columnName)
      Get an SQL condition to match this address section representation
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SQLStringMatcher

        public SQLStringMatcher​(S networkString,
                                boolean isEntireAddress,
                                IPAddressSQLTranslator translator)
    • Method Detail

      • getSQLCondition

        public java.lang.StringBuilder getSQLCondition​(java.lang.StringBuilder builder,
                                                       java.lang.String columnName)
        Get an SQL condition to match this address section representation
        Parameters:
        builder -
        columnName -
        Returns:
        the condition
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object