public int compareByIp(Object inputObj) {
        Lease second = (Lease) inputObj;

        if (this.ip.compareTo(second.ip) == 1) {
            return 1;
        }

        if (this.ip.compareTo(second.ip) == -1) {
            return -1;
        }

        if (this.mac.compareTo(second.mac) == 1) {
            return 1;
        }

        if (this.mac.compareTo(second.mac) == -1) {
            return -1;
        }

        if (this.start.compareTo(second.start) == 1) {
            return 1;
        }

        if (this.start.compareTo(second.start) == -1) {
            return -1;
        }

        if (this.end.compareTo(second.end) == 1) {
            return 1;
        }

        if (this.end.compareTo(second.end) == -1) {
            return -1;
        }

        return 0;
    }