Package com.evolveum.midpoint.prism
Record Class PrismItemAccessDefinition.Info
java.lang.Object
java.lang.Record
com.evolveum.midpoint.prism.PrismItemAccessDefinition.Info
- Enclosing interface:
- PrismItemAccessDefinition
public static record PrismItemAccessDefinition.Info(boolean canAdd, boolean canModify, boolean canRead)
extends Record
Just a DTO.
-
Constructor Summary
ConstructorDescriptionInfo
(boolean canAdd, boolean canModify, boolean canRead) Creates an instance of aInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAdd()
Returns the value of thecanAdd
record component.boolean
Returns the value of thecanModify
record component.boolean
canRead()
Returns the value of thecanRead
record component.final boolean
Indicates whether some other object is "equal to" this one.full()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Info
public Info(boolean canAdd, boolean canModify, boolean canRead) Creates an instance of aInfo
record class.- Parameters:
canAdd
- the value for thecanAdd
record componentcanModify
- the value for thecanModify
record componentcanRead
- the value for thecanRead
record component
-
-
Method Details
-
full
-
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 with '=='. -
canAdd
public boolean canAdd()Returns the value of thecanAdd
record component.- Returns:
- the value of the
canAdd
record component
-
canModify
public boolean canModify()Returns the value of thecanModify
record component.- Returns:
- the value of the
canModify
record component
-
canRead
public boolean canRead()Returns the value of thecanRead
record component.- Returns:
- the value of the
canRead
record component
-