All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.hdp.capability.registry.client.binder.CapabilityData Maven / Gradle / Ivy

Go to download

This repository contains the source code for the capability registry API. This API exposes the interface through which a consumer or provider interacts with the capability registry.

There is a newer version: 1.1.0
Show newest version
/**
 * Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
 * Dell EMC Confidential/Proprietary Information
 */

package com.dell.cpsd.hdp.capability.registry.client.binder;

import com.dell.cpsd.hdp.capability.registry.api.Capability;
import com.dell.cpsd.hdp.capability.registry.api.CapabilityProvider;

/**
 * 

* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * Dell EMC Confidential/Proprietary Information *

* * @since 1.0 */ public class CapabilityData { private CapabilityProvider provider; private Capability capability; /** * Constructor * * @param provider * The capability provider information * @param capability * The capability */ public CapabilityData(CapabilityProvider provider, Capability capability) { this.provider = provider; this.capability = capability; } public CapabilityProvider getProvider() { return provider; } public Capability getCapability() { return capability; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CapabilityData that = (CapabilityData) o; if (provider != null ? !provider.equals(that.provider) : that.provider != null) { return false; } return capability != null ? capability.equals(that.capability) : that.capability == null; } @Override public int hashCode() { int result = provider != null ? provider.hashCode() : 0; result = 31 * result + (capability != null ? capability.hashCode() : 0); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy