Class IpAddressRangeSet.IpAddressSegmenter<R>

java.lang.Object
ru.bitel.common.inet.IpAddressRangeSet.IpAddressSegmenter<R>
All Implemented Interfaces:
ru.bitel.common.util.SegmentedRangeSet.Segmenter<IpAddress,​R>
Enclosing class:
IpAddressRangeSet<R>

public static class IpAddressRangeSet.IpAddressSegmenter<R>
extends java.lang.Object
implements ru.bitel.common.util.SegmentedRangeSet.Segmenter<IpAddress,​R>
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected int maskLength  
    protected ru.bitel.common.util.Ranger<R,​byte[]> ranger  
  • Method Summary

    Modifier and Type Method Description
    byte[] segmentKey​(byte[] address)  
    IpAddress segmentKey​(R serv)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • maskLength

      protected final int maskLength
    • ranger

      protected final ru.bitel.common.util.Ranger<R,​byte[]> ranger
  • Method Details

    • segmentKey

      public byte[] segmentKey​(byte[] address)
    • segmentKey

      public IpAddress segmentKey​(R serv)
      Specified by:
      segmentKey in interface ru.bitel.common.util.SegmentedRangeSet.Segmenter<IpAddress,​R>