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
ConstructorDescriptionGlobalRuleWithId
(@NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull String ruleId) Creates an instance of aGlobalRuleWithId
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static GlobalRuleWithId
of
(@NotNull GlobalPolicyRuleConfigItem ruleCI, @NotNull String originatingObjectOid) @NotNull GlobalPolicyRuleConfigItem
ruleCI()
Returns the value of theruleCI
record component.@NotNull String
ruleId()
Returns the value of theruleId
record component.@NotNull ConfigurationItemOrigin
toString()
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 aGlobalRuleWithId
record class.- Parameters:
ruleCI
- the value for theruleCI
record componentruleId
- the value for theruleId
record 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 theruleCI
record component.- Returns:
- the value of the
ruleCI
record component
-
ruleId
Returns the value of theruleId
record component.- Returns:
- the value of the
ruleId
record component
-