org.rhq.core.domain.resource.flyweight
Class ResourceAvailabilityFlyweight

java.lang.Object
  extended by org.rhq.core.domain.resource.flyweight.ResourceAvailabilityFlyweight
All Implemented Interfaces:
Serializable

public class ResourceAvailabilityFlyweight
extends Object
implements Serializable

This is basically a copy of ResourceAvailability class, but is linked to the ResourceFlyweight instead of Resource. This enables us to retain the same API for the flyweights as for the original domain entities.

See Also:
Serialized Form

Constructor Summary
ResourceAvailabilityFlyweight(ResourceFlyweight resource, AvailabilityType type)
           
 
Method Summary
 boolean equals(Object obj)
           
 AvailabilityType getAvailabilityType()
           
 ResourceFlyweight getResource()
           
 int getResourceId()
           
 int hashCode()
           
 void setAvailabilityType(AvailabilityType availabilityType)
           
 void setResource(ResourceFlyweight resource)
           
 void setResourceId(int resourceId)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAvailabilityFlyweight

public ResourceAvailabilityFlyweight(ResourceFlyweight resource,
                                     AvailabilityType type)
Method Detail

getResource

public ResourceFlyweight getResource()

setResource

public void setResource(ResourceFlyweight resource)

getResourceId

public int getResourceId()

setResourceId

public void setResourceId(int resourceId)

getAvailabilityType

public AvailabilityType getAvailabilityType()

setAvailabilityType

public void setAvailabilityType(AvailabilityType availabilityType)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.