/** * Performs a deep copy on <i>other</i>. */ public HostAddress(HostAddress other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetHostName()) { this.hostName = other.hostName; } this.port = other.port; if (other.isSetIpAddress()) { this.ipAddress = other.ipAddress; } if (other.isSetServerType()) { this.serverType = other.serverType; } }
/** * Returns true if field corresponding to fieldID is set (has been assigned a * value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case HOST_NAME: return isSetHostName(); case PORT: return isSetPort(); case IP_ADDRESS: return isSetIpAddress(); case SERVER_TYPE: return isSetServerType(); } throw new IllegalStateException(); }