- Enclosing class:
- DozeParameters
public static class DozeParameters.IntInOutMatcher
extends Object
Parses a spec of the form `1,2,3,!5,*`. The resulting object will match numbers that are
listed, will not match numbers that are listed with a ! prefix, and will match / not match
unlisted numbers depending on whether * or !* is present.
* -> match any numbers that are not explicitly listed
!* -> don't match any numbers that are not explicitly listed
2 -> match 2
!3 -> don't match 3
It is illegal to specify:
- an empty spec
- a spec containing that are empty, or a lone !
- a spec for anything other than numbers or *
- multiple terms for the same number / multiple *s