public final class ProfileRule extends Rule implements ProfileRuleChild
Constructor and Description |
---|
ProfileRule(ProfileContext context,
java.util.List<ProfileRuleChild> children) |
Modifier and Type | Method and Description |
---|---|
static ProfileRule |
createProfileRule(ProfileContext context,
ProfileRuleChild... children)
Convenience method to create a
ProfileRule instance. |
boolean |
equals(java.lang.Object o) |
java.util.List<C> |
getChildren()
Returns the child rules and child actions associated with this rule.
|
X |
getContext()
The context which must be matched in order for the child actions and child rules to be applied.
|
int |
hashCode() |
java.lang.String |
toString() |
public ProfileRule(@Nonnull ProfileContext context, @Nonnull java.util.List<ProfileRuleChild> children)
context
- The context in which this rule should be applied.children
- Each child is either a (nested) rule, or an action to apply.@Nonnull public static ProfileRule createProfileRule(@Nonnull ProfileContext context, @Nonnull ProfileRuleChild... children)
ProfileRule
instance.@Nonnull public X getContext()
@Nonnull public java.util.List<C> getChildren()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.