@InterfaceStability.Evolving public class ResourceFilter extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ResourceFilter |
ANY
Matches any resource.
|
Constructor and Description |
---|
ResourceFilter(ResourceType resourceType,
java.lang.String name)
Create an instance of this class with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.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.
|
java.lang.String |
name()
Return the resource name or null.
|
ResourceType |
resourceType()
Return the resource type.
|
java.lang.String |
toString() |
public static final ResourceFilter ANY
public ResourceFilter(ResourceType resourceType, java.lang.String name)
resourceType
- non-null resource typename
- resource name or nullpublic ResourceType resourceType()
public java.lang.String name()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isUnknown()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean matches(Resource other)
public boolean matchesAtMostOne()
public java.lang.String findIndefiniteField()