class Ip implements Serializable, Comparable<Ip> {

    public boolean isSameAddressAs(Object obj) {
        if (this.equals(obj)) {
            return true;
        } else if (obj instanceof String) {
            return ip == NetUtils.ip2Long((String)obj);
        } else if (obj instanceof Long) {
            return ip == (Long)obj;
        } else {
            return false;
        }
    }

    public  Ip(long ip);
    public  Ip(String ip);
    protected  Ip();

}