| Interface | Description |
|---|---|
| Case<T,R> |
An interface / trait for building functionally compositional pattern matching cases
Consists of a Predicate and a Function
When match is called, if the predicate holds the function is executed
|
| Extractor<T,R> |
Interface representing an extracting from one value to another
extends Function and adds Serializability
|
| Class | Description |
|---|---|
| ActiveCase<T,R> |
A functionally compositional class that represents a pattern matching Case
Consists of a Predicate and a Function
When match is called, if the predicate holds the function is executed
|
| ADTPredicateBuilder<T> |
Predicate Builder for Algebraic Data Types Can be used to recursively match
on ADTs
|
| ADTPredicateBuilder.InternalADTPredicateBuilder<T> | |
| AsDecomposable | |
| AsDecomposable.CoercedDecomposable | |
| CaseBeingBuilt | |
| Cases<T,R> |
Represents an ordered list of pattern matching cases.
|
| EmptyCase<T,R> |
Represents an empty pattern matching case
|
| Extractors |
Generic extractors for use s pre and post data extractors.
|
| MatchableCase<X> | |
| MatchingInstance<T,X> |
Pattern Matching builder instance
|
| PatternMatcher |
PatternMatcher supports advanced pattern matching for Java 8
This is an API for creating Case instances and allows new type definitions to be supplied for each Case
Features include
-cases match by value
-cases match by type
-cases using predicates
inCaseOfXXX
caseOfXXX
-cases using hamcrest Matchers
inMatchOfXXX
matchOfXXX
-cases as expressions (return value) - inCaseOfXXX, inMatchOfXXX
-cases as statements (no return value) - caseOfXXX, matchOfXXX
-pre & post variable extraction via Extractor (@see com.aol.cyclops.matcher.Extractors)
-match using iterables of predicates or hamcrest Matchers
- see caseOfIterable, matchOfIterable, inCaseOfIterable, matchOfIterable
-match using tuples of predicates or hamcreate Matchers
- see caseOfTuple, matchOfTuple, inCaseOfTuple, inMatchOfTuple
- single match (match method)
- match many (matchMany)
- match against a stream (single match, match many)
|
| SeqUtils | |
| SeqUtils.EMPTY |