@Override public boolean equals(final Object object) { if(object == null || !(object instanceof ClientClusteredObjectView)) { return false; } ClientClusteredObjectView clientClusteredObjectView = (ClientClusteredObjectView) object; return super.equals(clientClusteredObjectView) && clientClusteredObjectView.replicated == replicated && refs.equals(clientClusteredObjectView.refs) && policyData.equals(clientClusteredObjectView.policyData) && itfClass.equals(clientClusteredObjectView.itfClass); }
@Override public int hashCode() { return super.hashCode() + (poolConfiguration == null ? 0 : poolConfiguration.hashCode()) + (policyData == null ? 0 : policyData.hashCode()) + Boolean.valueOf(replicated).hashCode() + filters.hashCode(); }
public ClientClusteredObjectView addClusteredObject(final String clusterName, final boolean proxyEnabled, final String objectName, final String itfName, final String businessName, final boolean stateful, final Set<String> applicationExceptionNames ) { ClientClusteredObjectView clusteredObjectView = objects.get(objectName); if(clusteredObjectView == null) { clusteredObjectView = new ClientClusteredObjectView(clusterName, proxyEnabled, objectName, itfName, businessName, stateful, applicationExceptionNames); objects.put(objectName, clusteredObjectView); } return clusteredObjectView; }
clientClusterViewCache.addClusteredObject(immutableInfos); String itfName = immutableInfos.getItfName(); Class<?> itfClass; try { String businessName = immutableInfos.getBusinessName();
public ImmutableClusteredObjectInfos getImmutableInfos() { return new ImmutableClusteredObjectInfos(getClusterName(), isProxyEnabled(), getObjectName(), getItfName(), getBusinessName(), isStateful(), getApplicationExceptionNames()); }
@Override public int hashCode() { return 7*(super.hashCode() + 31*(Boolean.valueOf(replicated).hashCode() + 31*(refs.hashCode() + 31*(policyData.hashCode() + 31*itfClass.hashCode())))); } }
@Override public boolean equals(final Object object) { if(object == null || !(object instanceof DistributedObjectInfo)) { return false; } DistributedObjectInfo distributedObjectInfo = (DistributedObjectInfo) object; return super.equals(distributedObjectInfo) && (policyData == null ? distributedObjectInfo.policyData == null : policyData.equals(distributedObjectInfo.policyData)) && replicated == distributedObjectInfo.replicated && (poolConfiguration == null ? distributedObjectInfo.poolConfiguration == null : poolConfiguration.equals(distributedObjectInfo.poolConfiguration)) && filters.equals(distributedObjectInfo.filters); }