@Test public void shouldRejectIpOutOfRange(){ assertFalse(onenintytwo.contains("192.168.3.49")); }
public boolean contains(long ipLong) { boolean out; out = this.lo <= ipLong && ipLong <= this.hi; return out; }
IPv4Range { public boolean contains(long ipLong) { boolean out; out = this.lo <= ipLong && ipLong <= this.hi; return out; } }
IPv4Range { public boolean contains(long ipLong) { boolean out; out = this.lo <= ipLong && ipLong <= this.hi; return out; } IPv4Range();  IPv4Range(long lo, long hi, String label);  IPv4Range(String lo, String hi, String label); }
IPv4Range { public boolean contains(long ipLong) { boolean out; out = this.lo <= ipLong && ipLong <= this.hi; return out; } IPv4Range();  IPv4Range(long lo, long hi, String label);  IPv4Range(String lo, String hi, String label); long getLo(); void setLo(long lo); long getHi(); void setHi(long hi); String getLabel(); void setLabel(String label); @Override String toString(); boolean contains(long ipLong); boolean contains(String ipStr); }
IPv4Range { public boolean contains(long ipLong) { boolean out; out = this.lo <= ipLong && ipLong <= this.hi; return out; } IPv4Range();  IPv4Range(long lo, long hi, String label);  IPv4Range(String lo, String hi, String label); long getLo(); void setLo(long lo); long getHi(); void setHi(long hi); String getLabel(); void setLabel(String label); @Override String toString(); boolean contains(long ipLong); boolean contains(String ipStr);  }