@@ -0,0 +1,621 @@
+/**%0A * %0A */%0Apackage cn.strong.leke.core.ip;%0A%0Aimport org.springframework.util.Assert;%0A%0A/**%0A * IPv4 %E8%8C%83%E5%9B%B4%E6%9D%A1%E7%9B%AE%0A * %0A * @author liulongbiao%0A *%0A */%0Apublic class IPv4Entry %7B%0A%09public final IPv4 begin;%0A%09public final IPv4 end;%0A%09public final IPv4Loc loc;%0A%0A%09public IPv4Entry(IPv4 begin, IPv4 end, IPv4Loc loc) %7B%0A%09%09super();%0A%09%09this.begin = begin;%0A%09%09this.end = end;%0A%09%09this.loc = loc;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22%5B%22 + begin.toString() + %22~%22 + end.toString() + %22%5D(%22 + loc.toString() + %22)%22;%0A%09%7D%0A%0A%09public boolean contains(IPv4 ip) %7B%0A%09%09Assert.notNull(ip);%0A%09%09return begin.compareTo(ip) %3C= 0 && end.compareTo(ip) %3E= 0;%0A%09%7D%0A%7D%0A

add IPv4Entry