org.rhq.core.domain.resource.flyweight
Class AutoGroupCompositeFlyweight
java.lang.Object
org.rhq.core.domain.resource.flyweight.AutoGroupCompositeFlyweight
- All Implemented Interfaces:
- Serializable
public class AutoGroupCompositeFlyweight
- extends Object
- implements Serializable
This class is mostly a copy of AutoGroupComposite
but is linked together
with ResourceFlyweight
, ResourceTypeFlyweight
and ResourceSubCategoryFlyweight
instances as opposed to
their fully featured counterparts which is what makes this class flyweight.
In addition to the AutoGroupComposite
, this class contains some more properties used
in the UI layer.
- See Also:
AutoGroupComposite
,
Serialized Form
Constructor Summary |
AutoGroupCompositeFlyweight(AutoGroupCompositeFlyweight other)
|
AutoGroupCompositeFlyweight(Double availability,
ResourceFlyweight parentResource,
ResourceSubCategoryFlyweight subcategory,
long memberCount)
|
AutoGroupCompositeFlyweight(Double availability,
ResourceFlyweight parentResource,
ResourceTypeFlyweight resourceType,
long memberCount)
|
AutoGroupCompositeFlyweight(Double availability,
ResourceFlyweight parentResource,
ResourceTypeFlyweight resourceType,
long memberCount,
boolean isDuplicateResourceTypeName)
|
AutoGroupCompositeFlyweight
public AutoGroupCompositeFlyweight(AutoGroupCompositeFlyweight other)
AutoGroupCompositeFlyweight
public AutoGroupCompositeFlyweight(Double availability,
ResourceFlyweight parentResource,
ResourceTypeFlyweight resourceType,
long memberCount)
AutoGroupCompositeFlyweight
public AutoGroupCompositeFlyweight(Double availability,
ResourceFlyweight parentResource,
ResourceTypeFlyweight resourceType,
long memberCount,
boolean isDuplicateResourceTypeName)
AutoGroupCompositeFlyweight
public AutoGroupCompositeFlyweight(Double availability,
ResourceFlyweight parentResource,
ResourceSubCategoryFlyweight subcategory,
long memberCount)
getAvailability
public Double getAvailability()
getResourceType
public ResourceTypeFlyweight getResourceType()
getMemberCount
public long getMemberCount()
setResources
public void setResources(List<ResourceFlyweight> resources)
getSubcategory
public ResourceSubCategoryFlyweight getSubcategory()
getParentResource
public ResourceFlyweight getParentResource()
setParentResource
public void setParentResource(ResourceFlyweight parentResource)
getResources
public List<ResourceFlyweight> getResources()
getDepth
public int getDepth()
setDepth
public void setDepth(int depth)
increaseDepth
public int increaseDepth(int increment)
isMainResource
public boolean isMainResource()
setMainResource
public void setMainResource(boolean mainResource)
getName
public String getName()
getMembersAvailabilityHint
public MembersAvailabilityHint getMembersAvailabilityHint()
setMembersAvailabilityHint
public void setMembersAvailabilityHint(MembersAvailabilityHint membersAvailabilityHint)
getMembersCategoryHint
public MembersCategoryHint getMembersCategoryHint()
setMembersCategoryHint
public void setMembersCategoryHint(MembersCategoryHint membersCategoryHint)
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.