class PortNumber {

    public boolean exactlyEquals(PortNumber that) {
        if (this == that) {
            return true;
        }

        return this.equals(that) &&
               this.hasName == that.hasName &&
               Objects.equal(this.name, that.name);
    }

    private  PortNumber(long number);
    private  PortNumber(long number, String name);

}