@InterfaceStability.Evolving public class ResourceFilter extends Object
Modifier and Type | Field and Description |
---|---|
static ResourceFilter |
ANY
Matches any resource.
|
Constructor and Description |
---|
ResourceFilter(ResourceType resourceType,
String name)
Create an instance of this class with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
findIndefiniteField()
Return a string describing an ANY or UNKNOWN field, or null if there is no such field.
|
int |
hashCode() |
boolean |
isUnknown()
Return true if this ResourceFilter has any UNKNOWN components.
|
boolean |
matches(Resource other)
Return true if this filter matches the given Resource.
|
boolean |
matchesAtMostOne()
Return true if this filter could only match one ACE.
|
String |
name()
Return the resource name or null.
|
ResourceType |
resourceType()
Return the resource type.
|
String |
toString() |
public static final ResourceFilter ANY
public ResourceFilter(ResourceType resourceType, String name)
resourceType
- non-null resource typename
- resource name or nullpublic ResourceType resourceType()
public String name()
public boolean isUnknown()
public boolean matches(Resource other)
public boolean matchesAtMostOne()
public String findIndefiniteField()