
net.java.dev.vcc.spi.AbstractManagedObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcc-api Show documentation
Show all versions of vcc-api Show documentation
The API for control of virtual computers running on a virtual computer host
The newest version!
package net.java.dev.vcc.spi;
import net.java.dev.vcc.api.ManagedObject;
import net.java.dev.vcc.api.ManagedObjectId;
/**
* Created by IntelliJ IDEA. User: connollys Date: May 26, 2009 Time: 2:16:00 PM To change this template use File |
* Settings | File Templates.
*/
public abstract class AbstractManagedObject> implements ManagedObject {
private final ManagedObjectId id;
protected AbstractManagedObject(ManagedObjectId id) {
id.getClass(); // throw NPE if null
this.id = id;
}
public ManagedObjectId getId() {
return id;
}
@Override
public final boolean equals(Object o) {
return this == o || (o instanceof AbstractManagedObject && id.equals(((AbstractManagedObject) o).id));
}
@Override
public final int hashCode() {
return id.hashCode();
}
public String getDescription() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy