Record Class StringPolicy.CharacterClassLimitation
java.lang.Object
java.lang.Record
com.evolveum.midpoint.model.common.stringpolicy.StringPolicy.CharacterClassLimitation
- Enclosing class:
- StringPolicy
public static record StringPolicy.CharacterClassLimitation(@NotNull CharacterClass characterClass, @Nullable StringLimitType bean, boolean mustBeFirst, boolean ignoreWhenGenerating, int minOccurrences, Integer declaredMaxOccurrences, int effectiveMaxOccurrences)
extends Record
Limitation regarding a single character class: required minimum and allowed maximum occurrences
of characters from within this class in the generated or checked string value.
-
Constructor Summary
ConstructorsConstructorDescriptionCharacterClassLimitation(@NotNull CharacterClass characterClass, @Nullable StringLimitType bean, boolean mustBeFirst, boolean ignoreWhenGenerating, int minOccurrences, Integer declaredMaxOccurrences, int effectiveMaxOccurrences) Creates an instance of aCharacterClassLimitationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringLimitTypebean()Returns the value of thebeanrecord component.@NotNull CharacterClassReturns the value of thecharacterClassrecord component.Returns the value of thedeclaredMaxOccurrencesrecord component.intReturns the value of theeffectiveMaxOccurrencesrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable String@Nullable PolyStringTypegetName()final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreWhenGeneratingrecord component.intReturns the value of theminOccurrencesrecord component.booleanReturns the value of themustBeFirstrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CharacterClassLimitation
public CharacterClassLimitation(@NotNull @NotNull CharacterClass characterClass, @Nullable @Nullable StringLimitType bean, boolean mustBeFirst, boolean ignoreWhenGenerating, int minOccurrences, Integer declaredMaxOccurrences, int effectiveMaxOccurrences) Creates an instance of aCharacterClassLimitationrecord class.- Parameters:
characterClass- the value for thecharacterClassrecord componentbean- the value for thebeanrecord componentmustBeFirst- the value for themustBeFirstrecord componentignoreWhenGenerating- the value for theignoreWhenGeneratingrecord componentminOccurrences- the value for theminOccurrencesrecord componentdeclaredMaxOccurrences- the value for thedeclaredMaxOccurrencesrecord componenteffectiveMaxOccurrences- the value for theeffectiveMaxOccurrencesrecord component
-
-
Method Details
-
getName
-
getDescription
-
getHumanReadableName
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
characterClass
Returns the value of thecharacterClassrecord component.- Returns:
- the value of the
characterClassrecord component
-
bean
Returns the value of thebeanrecord component.- Returns:
- the value of the
beanrecord component
-
mustBeFirst
public boolean mustBeFirst()Returns the value of themustBeFirstrecord component.- Returns:
- the value of the
mustBeFirstrecord component
-
ignoreWhenGenerating
public boolean ignoreWhenGenerating()Returns the value of theignoreWhenGeneratingrecord component.- Returns:
- the value of the
ignoreWhenGeneratingrecord component
-
minOccurrences
public int minOccurrences()Returns the value of theminOccurrencesrecord component.- Returns:
- the value of the
minOccurrencesrecord component
-
declaredMaxOccurrences
Returns the value of thedeclaredMaxOccurrencesrecord component.- Returns:
- the value of the
declaredMaxOccurrencesrecord component
-
effectiveMaxOccurrences
public int effectiveMaxOccurrences()Returns the value of theeffectiveMaxOccurrencesrecord component.- Returns:
- the value of the
effectiveMaxOccurrencesrecord component
-