Package io.higson.runtime.matcher
Class InMatcher
java.lang.Object
io.higson.runtime.matcher.AbstractMatcher
io.higson.runtime.matcher.AbstractSetMatcher
io.higson.runtime.matcher.InMatcher
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
NotInMatcher
- Author:
- przemek hertel
-
Field Summary
Fields inherited from class io.higson.runtime.matcher.AbstractSetMatcher
DEFAULT_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ValueHolder>
booleanPattern w komorce zawiera liste elementow typu [type].splitter()Methods inherited from class io.higson.runtime.matcher.AbstractSetMatcher
matches
-
Constructor Details
-
InMatcher
public InMatcher(char separator) -
InMatcher
public InMatcher() -
InMatcher
-
-
Method Details
-
doMatches
Pattern w komorce zawiera liste elementow typu [type]. Matcher spawdza, czy przekazana wartosc [value] jest na liscie okreslonej przez [pattern].
Pattern moze zawierac wartosci oddzielone separatorem albo znak specjalny (*). Domylsny separator to przecinek. Moze byc zmieniony setterem lub w konstruktorze.
Wartosc [value] a takze wszystkie wartosci na liscie tuz przed sprawdzeniem sa normalizowane do postaci ValueHolder.- Specified by:
doMatchesin classAbstractSetMatcher- Parameters:
value- value form query (provided by user)pattern- pattern from parameter matrix (can be '*')type- type of value, might be null if none was set- Returns:
- wynik sprawdzenia, czy [value] jest na liscie okreslonej w [pattern]
-
splitter
-