Record Class GlobalRuleWithId
java.lang.Object
java.lang.Record
com.evolveum.midpoint.model.common.GlobalRuleWithId
- All Implemented Interfaces:
Serializable
public record GlobalRuleWithId(@NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull String ruleId)
extends Record
implements Serializable
TEMPORARY
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalRuleWithId(@NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull String ruleId) Creates an instance of aGlobalRuleWithIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GlobalRuleWithIdof(@NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull String originatingObjectOid) @NotNull GlobalPolicyRuleConfigItemruleCI()Returns the value of theruleCIrecord component.@NotNull StringruleId()Returns the value of theruleIdrecord component.@NotNull ConfigurationItemOrigintoString()Returns a string representation of this record class.
-
Constructor Details
-
GlobalRuleWithId
public GlobalRuleWithId(@NotNull @NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull @NotNull String ruleId) Creates an instance of aGlobalRuleWithIdrecord class.- Parameters:
ruleCI- the value for theruleCIrecord componentruleId- the value for theruleIdrecord component
-
-
Method Details
-
of
public static GlobalRuleWithId of(@NotNull @NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull @NotNull String originatingObjectOid) -
ruleOrigin
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
ruleCI
Returns the value of theruleCIrecord component.- Returns:
- the value of the
ruleCIrecord component
-
ruleId
Returns the value of theruleIdrecord component.- Returns:
- the value of the
ruleIdrecord component
-