Class IpAddressRangeSet2<R>

java.lang.Object
ru.bitel.common.inet.IpAddressRangeSet2<R>

public class IpAddressRangeSet2<R> extends Object
  • Constructor Details

    • IpAddressRangeSet2

      public IpAddressRangeSet2(Class<R> clazz, ru.bitel.common.util.Ranger<R,byte[]> ranger, boolean bites, int maskLength)
  • Method Details

    • newInstance

      public static <K extends IpRange> IpAddressRangeSet2<K> newInstance(Class<K> clazz, int maskLength)
    • segmentKey

      protected IpAddress segmentKey(R range)
    • segmentKey

      protected byte[] segmentKey(byte[] address)
    • get

      public R get(IpAddress segmentKey, byte[] address, ru.bitel.common.util.Matcher<R> matcher)
    • get

      public R get(IpAddress segmentKey, byte[] address)
    • addAll

      public void addAll(Iterable<R> list)
    • removeAll

      public void removeAll(Iterable<R> list)
    • add

      public void add(R range)
    • remove

      public void remove(R range)
    • contains

      public boolean contains(byte[] address)
    • contains

      public boolean contains(byte[] address, ru.bitel.common.util.Matcher<R> matcher)