java.lang.Object
net.i2p.router.transport.GeoIPv6.V6Entry
All Implemented Interfaces:
Comparable<GeoIPv6.V6Entry>
Enclosing class:
GeoIPv6

private static class GeoIPv6.V6Entryextends Object implements Comparable<GeoIPv6.V6Entry>
Used to temporarily hold, sort, and merge entries before compressing.
  • Field Details

    • from

      public final long from
      First address of the range, as a long.
    • to

      public final long to
      Last address of the range, as a long.
    • cc

      public final String cc
      Two letter country code of the range.
  • Constructor Details

    • V6Entry

      public V6Entry(byte[] f, byte[] t, String c)
      Builds one range from address bytes.
      Parameters:
      f - the first address of the range
      t - the last address of the range
      c - the two letter country code
    • V6Entry

      public V6Entry(long f, long t, String c)
      Builds one range from long addresses.
      Parameters:
      f - the first address as a long
      t - the last address as a long
      c - the two letter country code
  • Method Details