Interface CIDRGroupsMappingTable<V>

  • All Known Implementing Classes:
    CIDRGroupsMappingIntervalTree

    public interface CIDRGroupsMappingTable<V>
    This interface defines functionality to be provided by algorithm(s) implementing CIDR to CIDR groups mappings, to facilitate the efficient way to find the longest matching CIDR for a given IP
    • Method Detail

      • getIPTypeString

        default java.lang.String getIPTypeString​(boolean isIPv6)
      • lookupLongestMatchForIP

        java.util.Set<V> lookupLongestMatchForIP​(java.net.InetAddress ip)
        Finds the longest matching CIDR for the given IP
        Parameters:
        ip - IP to lookup CIDR group
        Returns:
        returns CIDR group(s) associated with the longest matching CIDR for the given IP, returns null if no match found