* <p>
* Note that an entity identifier must conform to a valid yang schema. If there is no existing yang schema to
* represent an entity, the general-entity yang model can be used.
+ *
+ * @deprecated Use org.opendaylight.mdsal.binding.api.clustering.Entity or
+ * org.opendaylight.mdsal.eos.dom.api.DOMEntity instead
*/
+@Deprecated
public final class Entity implements Serializable {
private static final long serialVersionUID = 1L;
- private static final QName ENTITY_QNAME =
- org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.core.general.entity.rev150820.Entity.QNAME;
+ private static final QName ENTITY_QNAME = org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang
+ .controller.md.sal.core.general.entity.rev150820.Entity.QNAME;
private static final QName ENTITY_NAME = QName.create(ENTITY_QNAME, "name");
private final String type;
}
/**
- *
- * @return id of entity
+ * Returns the id of entity.
*/
@Nonnull
- public YangInstanceIdentifier getId(){
+ public YangInstanceIdentifier getId() {
return id;
}
/**
- *
- * @return type of entity
+ * Returns the type of entity.
*/
@Nonnull
- public String getType(){
+ public String getType() {
return type;
}
@Override
- public boolean equals(Object o) {
- if (this == o) {
+ public boolean equals(Object obj) {
+ if (this == obj) {
return true;
}
- if (o == null || getClass() != o.getClass()) {
+ if (obj == null || getClass() != obj.getClass()) {
return false;
}
- Entity entity = (Entity) o;
+ Entity entity = (Entity) obj;
if (!id.equals(entity.id)) {
return false;
@Override
public String toString() {
- final StringBuilder sb = new StringBuilder("Entity{");
- sb.append("type='").append(type).append('\'');
- sb.append(", id=").append(id);
- sb.append('}');
- return sb.toString();
+ return "Entity{" + "type='" + type + '\'' + ", id=" + id + '}';
}
}