- All Superinterfaces:
PatternAccessor
,PatternAccessor.PatternMutator
- Enclosing interface:
- PatternAccessor
public static interface PatternAccessor.PatternProperty
extends PatternAccessor, PatternAccessor.PatternMutator
Provides a pattern property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.PatternAccessor
PatternAccessor.PatternBuilder<B extends PatternAccessor.PatternBuilder<?>>, PatternAccessor.PatternMutator, PatternAccessor.PatternProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault Pattern
letPattern
(Pattern aPattern) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenPattern
(setter) as ofPatternAccessor.PatternMutator.setPattern(Pattern)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.PatternAccessor
getPattern
Methods inherited from interface org.refcodes.mixin.PatternAccessor.PatternMutator
setPattern
-
Method Details
-
letPattern
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenPattern
(setter) as ofPatternAccessor.PatternMutator.setPattern(Pattern)
and returns the very same value (getter).- Parameters:
aPattern
- ThePattern
to set (viaPatternAccessor.PatternMutator.setPattern(Pattern)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-