public class TermRestriction<T> extends Object implements PropertyRestriction<T>
Constructor and Description |
---|
TermRestriction(Property<T> property,
MatchMode matchMode,
T value)
Constructs a restriction based on an entity property value and match mode.
|
TermRestriction(Property<T> property,
T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MatchMode |
getMatchMode()
Returns the mode to match a property.
|
Property<T> |
getProperty()
Returns the property to match on.
|
T |
getValue()
Returns the value to match against the property.
|
int |
hashCode() |
String |
toString() |
public TermRestriction(Property<T> property, MatchMode matchMode, T value)
UserTermKeys
and
GroupTermKeys
.property
- the property to matchmatchMode
- the method of matching (exact match, prefix, etc.)value
- the value to matchpublic final T getValue()
PropertyRestriction
getValue
in interface PropertyRestriction<T>
public final Property<T> getProperty()
PropertyRestriction
getProperty
in interface PropertyRestriction<T>
public final MatchMode getMatchMode()
PropertyRestriction
getMatchMode
in interface PropertyRestriction<T>
Copyright © 2020 Atlassian. All rights reserved.