class Ip implements Serializable, Comparable<Ip> {

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Ip) {
            return ip == ((Ip)obj).ip;
        }
        return false;
    }

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

}