net.java.dev.vcc.spi
Class AbstractManagedObject<T extends ManagedObject<T>>

java.lang.Object
  extended by net.java.dev.vcc.spi.AbstractManagedObject<T>
All Implemented Interfaces:
ManagedObject<T>
Direct Known Subclasses:
AbstractComputer, AbstractComputerSnapshot, AbstractComputerTemplate, AbstractDatacenter, AbstractDatacenterResourceGroup, AbstractHost, AbstractHostResourceGroup

public abstract class AbstractManagedObject<T extends ManagedObject<T>>
extends java.lang.Object
implements ManagedObject<T>

Created by IntelliJ IDEA. User: connollys Date: May 26, 2009 Time: 2:16:00 PM To change this template use File | Settings | File Templates.


Constructor Summary
protected AbstractManagedObject(ManagedObjectId<T> id)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getDescription()
          Gets the description of this managed object or null if descriptions are not supported.
 ManagedObjectId<T> getId()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.dev.vcc.api.ManagedObject
execute, getCommands, getName
 

Constructor Detail

AbstractManagedObject

protected AbstractManagedObject(ManagedObjectId<T> id)
Method Detail

getId

public ManagedObjectId<T> getId()
Specified by:
getId in interface ManagedObject<T extends ManagedObject<T>>

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

getDescription

public java.lang.String getDescription()
Description copied from interface: ManagedObject
Gets the description of this managed object or null if descriptions are not supported.

Specified by:
getDescription in interface ManagedObject<T extends ManagedObject<T>>
Returns:
the description of this managed object or null if descriptions are not supported.


Copyright © 2009. All Rights Reserved.