Package io.bdeploy.jersey.ws.change.msg
Class ObjectScope
java.lang.Object
io.bdeploy.jersey.ws.change.msg.ObjectScope
- All Implemented Interfaces:
Comparable<ObjectScope>
Encapsulates scoping logic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectScopeAn empty scope matching any incoming scope. -
Constructor Summary
ConstructorsConstructorDescriptionObjectScope(String... scope) Create anObjectScopefrom one or more scope parts.ObjectScope(List<String> scope) Creates anObjectScopefrom theListrepresentation of a scope. -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()intlength()booleanmatches(ObjectScope other) Returns true if thisObjectScopeis a sub-scope (or exact match) of the givenObjectScope.intscore(ObjectScope other) toString()
-
Field Details
-
EMPTY
An empty scope matching any incoming scope.
-
-
Constructor Details
-
ObjectScope
Creates anObjectScopefrom theListrepresentation of a scope. -
ObjectScope
Create anObjectScopefrom one or more scope parts.
-
-
Method Details
-
matches
Returns true if thisObjectScopeis a sub-scope (or exact match) of the givenObjectScope. -
score
-
length
public int length() -
toString
-
hashCode
@Generated("Eclipse") public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ObjectScope>
-