// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.philips.lighting.model; // Referenced classes of package com.philips.lighting.model: // PHSoftwareUpdateStatus public class PHBridgeConfiguration { public static final int VALUE_NOT_SET = -55; private String bridgeID; private Boolean dhcpEnabled; private String gateway; private String ipAddress; private String localTime; private String macAddress; private String name; private String netmask; private Boolean portalServicesEnabled; private String proxy; private int proxyPort; private PHSoftwareUpdateStatus softwareStatus; private String softwareVersion; private String time; private String timeZone; private String userName; public PHBridgeConfiguration() { proxyPort = -55; } public PHBridgeConfiguration(PHBridgeConfiguration phbridgeconfiguration) { proxyPort = -55; if (phbridgeconfiguration == null) { throw new IllegalArgumentException("Input parameter can't be null"); } else { bridgeID = phbridgeconfiguration.bridgeID; dhcpEnabled = phbridgeconfiguration.dhcpEnabled; gateway = phbridgeconfiguration.gateway; ipAddress = phbridgeconfiguration.ipAddress; macAddress = phbridgeconfiguration.macAddress; name = phbridgeconfiguration.name; netmask = phbridgeconfiguration.netmask; portalServicesEnabled = phbridgeconfiguration.portalServicesEnabled; proxy = phbridgeconfiguration.proxy; proxyPort = phbridgeconfiguration.proxyPort; softwareStatus = phbridgeconfiguration.softwareStatus; softwareVersion = phbridgeconfiguration.softwareVersion; time = phbridgeconfiguration.time; localTime = phbridgeconfiguration.localTime; timeZone = phbridgeconfiguration.timeZone; userName = phbridgeconfiguration.userName; return; } } public boolean equals(Object obj) { if (this != obj) goto _L2; else goto _L1 _L1: return true; _L2: if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } obj = (PHBridgeConfiguration)obj; if (bridgeID == null) { if (((PHBridgeConfiguration) (obj)).bridgeID != null) { return false; } } else if (!bridgeID.equals(((PHBridgeConfiguration) (obj)).bridgeID)) { return false; } if (dhcpEnabled == null) { if (((PHBridgeConfiguration) (obj)).dhcpEnabled != null) { return false; } } else if (!dhcpEnabled.equals(((PHBridgeConfiguration) (obj)).dhcpEnabled)) { return false; } if (gateway == null) { if (((PHBridgeConfiguration) (obj)).gateway != null) { return false; } } else if (!gateway.equals(((PHBridgeConfiguration) (obj)).gateway)) { return false; } if (ipAddress == null) { if (((PHBridgeConfiguration) (obj)).ipAddress != null) { return false; } } else if (!ipAddress.equals(((PHBridgeConfiguration) (obj)).ipAddress)) { return false; } if (localTime == null) { if (((PHBridgeConfiguration) (obj)).localTime != null) { return false; } } else if (!localTime.equals(((PHBridgeConfiguration) (obj)).localTime)) { return false; } if (macAddress == null) { if (((PHBridgeConfiguration) (obj)).macAddress != null) { return false; } } else if (!macAddress.equals(((PHBridgeConfiguration) (obj)).macAddress)) { return false; } if (name == null) { if (((PHBridgeConfiguration) (obj)).name != null) { return false; } } else if (!name.equals(((PHBridgeConfiguration) (obj)).name)) { return false; } if (netmask == null) { if (((PHBridgeConfiguration) (obj)).netmask != null) { return false; } } else if (!netmask.equals(((PHBridgeConfiguration) (obj)).netmask)) { return false; } if (portalServicesEnabled == null) { if (((PHBridgeConfiguration) (obj)).portalServicesEnabled != null) { return false; } } else if (!portalServicesEnabled.equals(((PHBridgeConfiguration) (obj)).portalServicesEnabled)) { return false; } if (proxy == null) { if (((PHBridgeConfiguration) (obj)).proxy != null) { return false; } } else if (!proxy.equals(((PHBridgeConfiguration) (obj)).proxy)) { return false; } if (proxyPort != ((PHBridgeConfiguration) (obj)).proxyPort) { return false; } if (softwareStatus == null) { if (((PHBridgeConfiguration) (obj)).softwareStatus != null) { return false; } } else if (!softwareStatus.equals(((PHBridgeConfiguration) (obj)).softwareStatus)) { return false; } if (softwareVersion == null) { if (((PHBridgeConfiguration) (obj)).softwareVersion != null) { return false; } } else if (!softwareVersion.equals(((PHBridgeConfiguration) (obj)).softwareVersion)) { return false; } if (time == null) { if (((PHBridgeConfiguration) (obj)).time != null) { return false; } } else if (!time.equals(((PHBridgeConfiguration) (obj)).time)) { return false; } if (timeZone == null) { if (((PHBridgeConfiguration) (obj)).timeZone != null) { return false; } } else if (!timeZone.equals(((PHBridgeConfiguration) (obj)).timeZone)) { return false; } if (userName != null) { continue; /* Loop/switch isn't completed */ } if (((PHBridgeConfiguration) (obj)).userName == null) goto _L1; else goto _L3 _L3: return false; if (userName.equals(((PHBridgeConfiguration) (obj)).userName)) goto _L1; else goto _L4 _L4: return false; } public String getBridgeID() { return bridgeID; } public Boolean getDhcpEnabled() { return dhcpEnabled; } public String getGateway() { return gateway; } public String getIpAddress() { return ipAddress; } public String getLocalTime() { return localTime; } public String getMacAddress() { return macAddress; } public String getName() { return name; } public String getNetmask() { return netmask; } public Boolean getPortalServicesEnabled() { return portalServicesEnabled; } public String getProxy() { return proxy; } public int getProxyPort() { return proxyPort; } public PHSoftwareUpdateStatus getSoftwareStatus() { return softwareStatus; } public String getSoftwareVersion() { return softwareVersion; } public String getTime() { return time; } public String getTimeZone() { return timeZone; } public String getUsername() { return userName; } public int hashCode() { int k3 = 0; int i; int j; int k; int l; int i1; int j1; int k1; int l1; int i2; int j2; int k2; int l2; int i3; int j3; int l3; if (bridgeID == null) { i = 0; } else { i = bridgeID.hashCode(); } if (dhcpEnabled == null) { j = 0; } else { j = dhcpEnabled.hashCode(); } if (gateway == null) { k = 0; } else { k = gateway.hashCode(); } if (ipAddress == null) { l = 0; } else { l = ipAddress.hashCode(); } if (localTime == null) { i1 = 0; } else { i1 = localTime.hashCode(); } if (macAddress == null) { j1 = 0; } else { j1 = macAddress.hashCode(); } if (name == null) { k1 = 0; } else { k1 = name.hashCode(); } if (netmask == null) { l1 = 0; } else { l1 = netmask.hashCode(); } if (portalServicesEnabled == null) { i2 = 0; } else { i2 = portalServicesEnabled.hashCode(); } if (proxy == null) { j2 = 0; } else { j2 = proxy.hashCode(); } l3 = proxyPort; if (softwareStatus == null) { k2 = 0; } else { k2 = softwareStatus.hashCode(); } if (softwareVersion == null) { l2 = 0; } else { l2 = softwareVersion.hashCode(); } if (time == null) { i3 = 0; } else { i3 = time.hashCode(); } if (timeZone == null) { j3 = 0; } else { j3 = timeZone.hashCode(); } if (userName != null) { k3 = userName.hashCode(); } return (((((((((((((((i + 31) * 31 + j) * 31 + k) * 31 + l) * 31 + i1) * 31 + j1) * 31 + k1) * 31 + l1) * 31 + i2) * 31 + j2) * 31 + l3) * 31 + k2) * 31 + l2) * 31 + i3) * 31 + j3) * 31 + k3; } public void setBridgeID(String s) { bridgeID = s; } public void setDhcpEnabled(Boolean boolean1) { dhcpEnabled = boolean1; } public void setGateway(String s) { gateway = s; } public void setIpAddress(String s) { ipAddress = s; } public void setLocalTime(String s) { localTime = s; } public void setMacAddress(String s) { macAddress = s; } public void setName(String s) { name = s; } public void setNetmask(String s) { netmask = s; } public void setPortalServicesEnabled(Boolean boolean1) { portalServicesEnabled = boolean1; } public void setProxy(String s) { proxy = s; } public void setProxyPort(int i) { proxyPort = i; } public void setSoftwareStatus(PHSoftwareUpdateStatus phsoftwareupdatestatus) { softwareStatus = phsoftwareupdatestatus; } public void setSoftwareVersion(String s) { softwareVersion = s; } public void setTime(String s) { time = s; } public void setTimeZone(String s) { timeZone = s; } public void setUserName(String s) { userName = s; } }