org.rhq.core.domain.resource.flyweight
Class ResourceAvailabilityFlyweight
java.lang.Object
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
ResourceAvailabilityFlyweight
public ResourceAvailabilityFlyweight(ResourceFlyweight resource,
AvailabilityType type)
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-2012 Red Hat, Inc.. All Rights Reserved.