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 Details

    • getIPTypeString

      default String getIPTypeString(boolean isIPv6)
    • builder

      static <V> CIDRGroupsMappingTable.Builder<V> builder(boolean isIPv6)
    • lookupLongestMatchForIP

      Set<V> lookupLongestMatchForIP(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