org.rhq.core.domain.util
Class TypeAndKeyResourceFilter
java.lang.Object
org.rhq.core.domain.util.TypeAndKeyResourceFilter
- All Implemented Interfaces:
- ResourceFilter
public class TypeAndKeyResourceFilter
- extends Object
- implements ResourceFilter
- Since:
- 4.4
|
Method Summary |
boolean |
accept(Resource resource)
Tests whether or not the specified Resource should be included in a Resource list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeAndKeyResourceFilter
public TypeAndKeyResourceFilter(ResourceType resourceType,
String resourceKey)
accept
public boolean accept(Resource resource)
- Description copied from interface:
ResourceFilter
- Tests whether or not the specified Resource should be included in a Resource list.
- Specified by:
accept in interface ResourceFilter
- Parameters:
resource - The Resource to be tested
- Returns:
true if and only if resource should be included
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.