- accept(T) - Method in interface com.aol.cyclops.matcher.Action
-
- Action<T> - Interface in com.aol.cyclops.matcher
-
Serializable Consumer which allows Generic type information to be captured
- ActionWithReturnWrapper<T,X> - Class in com.aol.cyclops.matcher.builders
-
- ActionWithReturnWrapper(Action<T>) - Constructor for class com.aol.cyclops.matcher.builders.ActionWithReturnWrapper
-
- ActiveCase<T,R,X extends java.util.function.Function<T,R>> - Class in com.aol.cyclops.matcher
-
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
- ActiveCase() - Constructor for class com.aol.cyclops.matcher.ActiveCase
-
- ADTPredicateBuilder<T> - Class in com.aol.cyclops.matcher.builders
-
Predicate Builder for Algebraic Data Types
Can be used to recursively match on ADTs
- ADTPredicateBuilder() - Constructor for class com.aol.cyclops.matcher.builders.ADTPredicateBuilder
-
- allHoldNoType(Object...) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
Each supplied value will be checked against an element from the iterable
Each supplied value could be a comparison value, JDK 8 Predicate, or Hamcrest Matcher
Note if there is more elements in the iterable than predicates (or matchers / prototype values etc), and all predicates hold this case will trigger
- allMatch(<any>...) - Method in class com.aol.cyclops.matcher.builders.ElementCase
-
Build a Case which is triggered when all of the supplied Hamcrest Matchers holds
- allMatch(<any>...) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
Each supplied Hamcrest Matcher will be matched against elements in the matching iterable
Note if there is more elements in the iterable than matchers, and all predicates hold this case will trigger
- allMatchNoType(Matcher...) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
Each supplied Hamcrest Matcher will be matched against elements in the matching iterable
Note if there is more elements in the iterable than matchers, and all predicates hold this case will trigger
- allTrue(Predicate<V>...) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
All of the predicates hold
Each predicate will be matched in turn against a member of the iterable
Note if there is more elements in the iterable than predicates, and all predicates hold this case will trigger
- allTrueNoType(Predicate<? extends Object>...) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
Each predicate will be matched in turn against a member of the iterable
Note if there is more elements in the iterable than predicates, and all predicates hold this case will trigger
- allValues(V...) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
Check all supplied values against elements in the iterable in turn
Note if there is more elements in the iterable than values to match against and all values match this case will trigger
- and(Predicate<T>) - Method in interface com.aol.cyclops.matcher.Case
-
Create a new case which ands the supplied predicate with the current predicate.
- AndMembersMatchBuilder() - Constructor for class com.aol.cyclops.matcher.builders.CheckTypeAndValues.AndMembersMatchBuilder
-
- andOfType(Class<T>) - Method in interface com.aol.cyclops.matcher.Case
-
Add a guard that assures input is of specified type.
- andOfValue(T) - Method in interface com.aol.cyclops.matcher.Case
-
Add a guard that assures input is of specified type.
- andThen(Case<R, T1, ? extends Function<R, T1>>) - Method in interface com.aol.cyclops.matcher.Case
-
Provide a Case that will be run only if this one matches successfully
The result of the current case will be the input into the supplied case
Both cases have to be successful to return a result from match
- andThen(Cases<R, T1, ? extends Function<R, T1>>) - Method in interface com.aol.cyclops.matcher.Case
-
Add a set of Cases that will be run if this case matches successfull
- andThenFunction(Function<R, T>) - Method in interface com.aol.cyclops.matcher.Case
-
Creates a new Case that will execute the supplied function after current function if current predicate holds.
- andWithValues(Object...) - Method in interface com.aol.cyclops.matcher.Case
-
Insert a guard that decomposes input values and compares against the supplied values
Recursive decomposition is possible via Predicates.type and Predicates.with methods
- ANY() - Static method in class com.aol.cyclops.matcher.Predicates
-
- ANY(Class) - Static method in class com.aol.cyclops.matcher.Predicates
-
Match against any object that is an instance of supplied type
- anyMatch(<any>...) - Method in class com.aol.cyclops.matcher.builders.ElementCase
-
Build a Case which is triggered when any of the supplied Hamcrest Matchers holds
- anyValues() - Method in class com.aol.cyclops.matcher.builders.CheckValues.FinalCheck
-
- append(int, Case<T, R, X>) - Method in class com.aol.cyclops.matcher.Cases
-
Append an individual case with supplied Cases inserted at index
- apply(T) - Method in class com.aol.cyclops.matcher.builders.ActionWithReturnWrapper
-
- apply(Object) - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- apply(Object) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
- apply(Object) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- apply(Object) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- apply(T) - Method in class com.aol.cyclops.matcher.Cases
-
- apply(T) - Method in interface com.aol.cyclops.matcher.Extractor
-
- apply(T) - Method in interface com.aol.cyclops.matcher.TypedFunction
-
- AsMatchable - Class in com.aol.cyclops.matcher.recursive
-
- AsMatchable() - Constructor for class com.aol.cyclops.matcher.recursive.AsMatchable
-
- asMatchable(Object) - Static method in class com.aol.cyclops.matcher.recursive.AsMatchable
-
Coerce / wrap an Object as a Matchable instance
This adds match / _match methods for pattern matching against the object
- AsMatchable.CoercedMatchable<T> - Class in com.aol.cyclops.matcher.recursive
-
- asStreamFunction() - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- asStreamFunction() - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
- asStreamFunction() - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- asStreamFunction() - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- asStreamFunction() - Method in class com.aol.cyclops.matcher.Cases
-
assertThat(Cases.of(Case.of(input->true,input->"hello")).asStreamFunction().apply(10).findFirst().get(),is("hello"));
- asUnwrappedFunction() - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- asUnwrappedFunction() - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
- asUnwrappedFunction() - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- asUnwrappedFunction() - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- asUnwrappedFunction() - Method in class com.aol.cyclops.matcher.Cases
-
assertThat(Cases.of(Case.of(input->true,input->"hello")).asUnwrappedFunction().apply(10),is("hello"));
- at(int) - Static method in class com.aol.cyclops.matcher.Extractors
-
Iterate to position and retieve value at position in an iterable data structure.
- Case<T,R,X extends java.util.function.Function<T,R>> - Interface in com.aol.cyclops.matcher
-
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
- CaseBeingBuilt - Class in com.aol.cyclops.matcher.builders
-
- CaseBeingBuilt() - Constructor for class com.aol.cyclops.matcher.builders.CaseBeingBuilt
-
- CaseBuilder - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder() - Constructor for class com.aol.cyclops.matcher.builders.CaseBuilder
-
- CaseBuilder.InCaseOfBuilder<V> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InCaseOfBuilderExtractor<T,R,X> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InCaseOfBuilderExtractor.InCaseOfStep<V> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InCaseOfBuilderExtractor.InCaseOfValueStep<V,X> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InCaseOfBuilderExtractor.InMatchOf<V> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InCaseOfThenExtractStep<T,X,R> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InMatchOfBuilder<V,X> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.InMatchOfBuilder.InMatchOfThenExtract<V,X,R> - Class in com.aol.cyclops.matcher.builders
-
- CaseBuilder.ValueStep<V,X> - Class in com.aol.cyclops.matcher.builders
-
- CaseComprehender - Class in com.aol.cyclops.matcher.comprehenders
-
- CaseComprehender() - Constructor for class com.aol.cyclops.matcher.comprehenders.CaseComprehender
-
- caseOf(Predicate<V>, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- caseOf(Extractor<T, R>, Predicate<R>, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- caseOfMany(Action<List<V>>, Predicate<V>...) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Match against an iterable using supplied predicates.
- caseOfPredicates(Two<Predicate<V>, Predicate<V1>>, Action<R>, Extractor<T, R>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Run both predicates in the supplied tuple against the first two elements of a supplied iterable for matching
- caseOfThenExtract(Predicate<V>, Action<R>, Extractor<T, R>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- caseOfTuple(Iterable, Action<R>, Extractor<T, R>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Match against a tuple of predicates (or prototype values, or hamcrest matchers).
- caseOfType(Extractor<T, R>, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Match by type specified in Extractor as input, if user provided type via match, matches the Action (Action extends Consumer)
will be executed and provided with the result of the extraction.
- caseOfType(Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- caseOfValue(R, Extractor<T, R>, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Match by specified value against the extracted value from user input.
- caseOfValue(V, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Match by specified value and then execute supplied action.
- cases() - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- cases() - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
- cases() - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- Cases<T,R,X extends java.util.function.Function<T,R>> - Class in com.aol.cyclops.matcher
-
Represents an ordered list of pattern matching cases.
- CasesComprehender - Class in com.aol.cyclops.matcher.comprehenders
-
- CasesComprehender() - Constructor for class com.aol.cyclops.matcher.comprehenders.CasesComprehender
-
- ChainOfResponsibility<T,R> - Interface in com.aol.cyclops.matcher
-
Interface for implementing StreamOfResponsibility
Implementing Classes will be used as Predicate & Action (Function)
when building Cases.
- CheckType<R> - Class in com.aol.cyclops.matcher.builders
-
- CheckType() - Constructor for class com.aol.cyclops.matcher.builders.CheckType
-
- CheckTypeAndValues<X> - Class in com.aol.cyclops.matcher.builders
-
Case builder for Algebraic Data Type or Case class matching
- CheckTypeAndValues() - Constructor for class com.aol.cyclops.matcher.builders.CheckTypeAndValues
-
- CheckTypeAndValues.AndMembersMatchBuilder<T,R> - Class in com.aol.cyclops.matcher.builders
-
- CheckValues<T,R> - Class in com.aol.cyclops.matcher.builders
-
- CheckValues() - Constructor for class com.aol.cyclops.matcher.builders.CheckValues
-
- CheckValues.FinalCheck<T,T1,R> - Class in com.aol.cyclops.matcher.builders
-
- CoercedMatchable() - Constructor for class com.aol.cyclops.matcher.recursive.AsMatchable.CoercedMatchable
-
- CollectionMatcher - Class in com.aol.cyclops.matcher
-
Deprecated.
- CollectionMatcher() - Constructor for class com.aol.cyclops.matcher.CollectionMatcher
-
Deprecated.
- CollectionMatchingInstance<T,X> - Class in com.aol.cyclops.matcher.builders
-
Deprecated.
- CollectionMatchingInstance(CaseBeingBuilt) - Constructor for class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- CollectionStep<T,X> - Interface in com.aol.cyclops.matcher.builders
-
- com.aol.cyclops.matcher - package com.aol.cyclops.matcher
-
- com.aol.cyclops.matcher.builders - package com.aol.cyclops.matcher.builders
-
- com.aol.cyclops.matcher.comprehenders - package com.aol.cyclops.matcher.comprehenders
-
- com.aol.cyclops.matcher.recursive - package com.aol.cyclops.matcher.recursive
-
- compose(Case<T1, T, ? extends Function<T1, T>>) - Method in interface com.aol.cyclops.matcher.Case
-
Provide a Case that will be executed before the current one.
- composeAnd(Predicate<T1>, Function<T1, T>) - Method in interface com.aol.cyclops.matcher.Case
-
Compose a new Case which executes the Predicate and function supplied before the current predicate
and function.
- composeFunction(Function<T1, T>) - Method in interface com.aol.cyclops.matcher.Case
-
Creates a new Case that will execute the supplied function before current function if current predicate holds.
- composeOr(Case<T1, T, ? extends Function<T1, T>>) - Method in interface com.aol.cyclops.matcher.Case
-
Provide a Case that will be executed before the current one.
- map(Function<Two<Predicate<T>, X>, Two<Predicate<T1>, X1>>) - Method in interface com.aol.cyclops.matcher.Case
-
Allows both the predicate and function in the current case to be replaced in a new Case
- map(Function<Case<T, R, X>, Case<T1, R1, X1>>) - Method in class com.aol.cyclops.matcher.Cases
-
Map all Case instances present to a different value
- map(Case, Function) - Method in class com.aol.cyclops.matcher.comprehenders.CaseComprehender
-
- map(Cases, Function) - Method in class com.aol.cyclops.matcher.comprehenders.CasesComprehender
-
- mapFunction(Function<Function<T, R>, X1>) - Method in interface com.aol.cyclops.matcher.Case
-
Allows the current function to be replaced by another
- mapFunction(Function<Function<T, R>, Function<T, R1>>) - Method in class com.aol.cyclops.matcher.Cases
-
Map all the functions to another function
- mapPredicate(Function<Predicate<T>, Predicate<T>>) - Method in interface com.aol.cyclops.matcher.Case
-
Allows the predicate to be replaced with one returned from the supplied function
E.g.
- mapPredicate(Function<Predicate<T>, Predicate<T>>) - Method in class com.aol.cyclops.matcher.Cases
-
Map predicates for all Cases with the supplied function
- match(Object...) - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
Aggregates supplied objects into a List for matching against
- match(Object) - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- match(Object...) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Aggregates supplied objects into a List for matching against
- match(Object) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
- match(Object...) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Aggregates supplied objects into a List for matching against
- match(Object) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- match(Object...) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
Aggregates supplied objects into a List for matching against
- match(Object) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- match(T) - Method in interface com.aol.cyclops.matcher.Case
-
Match against the supplied value.
- match(Object...) - Method in class com.aol.cyclops.matcher.Cases
-
Aggregates supplied objects into a List for matching against
- match(T) - Method in class com.aol.cyclops.matcher.Cases
-
- match(T) - Method in class com.aol.cyclops.matcher.EmptyCase
-
- Matchable - Interface in com.aol.cyclops.matcher.recursive
-
Matchable
todo - add AsMatchable.asMatchable
- matchAsync(Executor, T) - Method in interface com.aol.cyclops.matcher.Case
-
Similar to Match, but executed asynchonously on supplied Executor.
- matchAsync(Executor, Object...) - Method in class com.aol.cyclops.matcher.Cases
-
Aggregates supplied objects into a List for matching asynchronously against
- matches(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
Match against the values inside the matchable with a single case
- matches(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
Match against the values inside the matchable with two cases
- matches(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- matches(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- matches(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- matchFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
Each input element can generated a single matched value
- matchFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Each input element can generated a single matched value
- matchFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Each input element can generated a single matched value
- matchFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
Each input element can generated a single matched value
- matchFromStream(Stream<T>) - Method in class com.aol.cyclops.matcher.Cases
-
Each input element can generated a single matched value
- matchFromStreamAsync(Executor, Stream<T>) - Method in class com.aol.cyclops.matcher.Cases
-
Execute matchFromStream asynchronously
- Matching - Class in com.aol.cyclops.matcher.builders
-
Pattern Matching builder
- Matching() - Constructor for class com.aol.cyclops.matcher.builders.Matching
-
- MatchingInstance<T,X> - Class in com.aol.cyclops.matcher.builders
-
Pattern Matching builder instance
- MatchingInstance() - Constructor for class com.aol.cyclops.matcher.builders.MatchingInstance
-
- matchMany(Object) - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
- matchMany(Object) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
- matchMany(Object) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- matchMany(Object) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- matchMany(T) - Method in class com.aol.cyclops.matcher.Cases
-
List<String> results = Cases.of(Case.of((Integer input)->10==input,input->"hello"),
Case.of(input->11==input,input->"world"),
Case.of(input->10==input,input->"woo!"))
.<String>matchMany(10).toList();
assertThat(results.size(),is(2));
assertThat(results,hasItem("hello"));
assertThat(results,hasItem("woo!"));
- matchManyAsync(Executor, T) - Method in class com.aol.cyclops.matcher.Cases
-
Match many asynchronously
- matchManyFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
Each input element can generated multiple matched values
- matchManyFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Each input element can generated multiple matched values
- matchManyFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Each input element can generated multiple matched values
- matchManyFromStream(Stream) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
Each input element can generated multiple matched values
- matchManyFromStream(Stream<T>) - Method in class com.aol.cyclops.matcher.Cases
-
Each input element in the stream can generate multiple matched values
- matchManyFromStreamAsync(Executor, Stream) - Method in class com.aol.cyclops.matcher.Cases
-
Asynchronously match against a Stream of data, on the supplied executor
Each input element in the stream can generate multiple matched values
- matchOf(<any>, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- matchOf(Extractor<T, R>, <any>, Action<V>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- matchOfMany(Action<List<V>>, <any>...) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Match against an iterable using supplied hamcrest matchers.
- matchOfMatchers(Two<<any>, <any>>, Action<R>, Extractor<T, R>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
Run both matchers in the supplied tuple against the first two elements of a supplied iterable for matching
- matchOfThenExtract(<any>, Action<V>, Extractor<T, R>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- matchOfTuple(Iterable, Action<R>, Extractor<T, R>) - Method in class com.aol.cyclops.matcher.builders.PatternMatcher
-
- mayMatch(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- mayMatch(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- mayMatch(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- mayMatch(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- mayMatch(Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>, Function<CheckValues<? super T, R>, CheckValues<? super T, R>>) - Method in interface com.aol.cyclops.matcher.recursive.Matchable
-
- memoised(Extractor<T, R>) - Static method in class com.aol.cyclops.matcher.Extractors
-
An extractor that caches the extraction result
- merge(Cases<T, R, X>) - Method in class com.aol.cyclops.matcher.Cases
-
Merge two cases, with supplied Cases added after current Cases
- of(Cases<T, X, ? extends Function<T, X>>) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Create a Pattern Matcher Builder from supplied Cases
- of(Predicate<T>, X) - Static method in interface com.aol.cyclops.matcher.Case
-
Construct an instance of Case from supplied predicate and action
- of(Two<Predicate<T>, X>) - Static method in interface com.aol.cyclops.matcher.Case
-
Construct an instance of Case from supplied Tuple of predicate and action
- of(Case<T, R, X>...) - Static method in class com.aol.cyclops.matcher.Cases
-
Construct a Cases instance from an array Pattern Matching Cases
Will execute sequentially when Match is called.
- of(Object) - Method in class com.aol.cyclops.matcher.comprehenders.CaseComprehender
-
- of(Object) - Method in class com.aol.cyclops.matcher.comprehenders.CasesComprehender
-
- of(int, int) - Static method in class com.aol.cyclops.matcher.Extractors
-
An extractor that will generte a Tuple2 with two values at the specified index.
- of(Object) - Static method in interface com.aol.cyclops.matcher.recursive.Matchable
-
Create a new matchable that will match on the fields of the provided Object
- ofDecomposable(Decomposable) - Static method in interface com.aol.cyclops.matcher.recursive.Matchable
-
Create a new matchable that will match on the fields of the provided Decomposable
- ofList(List<Case<T, R, X>>) - Static method in class com.aol.cyclops.matcher.Cases
-
Construct a Cases instance from a list of Pattern Matching Cases
Will execute sequentially when Match is called.
- ofPStack(PStack<Case<T, R, X>>) - Static method in class com.aol.cyclops.matcher.Cases
-
Construct a Cases instance from a persistent stack of Pattern Matching Cases
Will execute sequentially when Match is called.
- ofStream(Stream<T>) - Static method in interface com.aol.cyclops.matcher.recursive.Matchable
-
Create a new matchable that will match on the fields of the provided Stream
- or(Predicate<T>) - Method in interface com.aol.cyclops.matcher.Case
-
Create a new Case that will loosen the current predicate.
- or(Predicate<T1>, Function<T1, T>) - Method in interface com.aol.cyclops.matcher.Case
-
Syntax sugar for composeOr
- TempCollectionStepExtension<T,X> - Interface in com.aol.cyclops.matcher.builders
-
Deprecated.
- then(TypedFunction<T, R>) - Method in class com.aol.cyclops.matcher.builders._LastStep
-
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfBuilder
-
Create a new Case with the supplied ActionWithReturn as the action
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfBuilderExtractor.InCaseOfStep
-
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfBuilderExtractor.InCaseOfValueStep
-
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfBuilderExtractor.InMatchOf
-
- thenApply(TypedFunction<R, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfThenExtractStep
-
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InMatchOfBuilder.InMatchOfThenExtract
-
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InMatchOfBuilder
-
Create a new Case with the supplied ActionWithReturn as the action
- thenApply(TypedFunction<V, X>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.ValueStep
-
- thenApply(TypedFunction<T, X>) - Method in interface com.aol.cyclops.matcher.builders.CollectionStep
-
Create a new Case with the supplied ActionWithReturn as the action
- thenApply(TypedFunction<List<V>, X>) - Method in class com.aol.cyclops.matcher.builders.InCaseOfManyStep2
-
Deprecated.
Create a new Case with the supplied ActionWithReturn as the action
- thenApply(TypedFunction<List<V>, X>) - Method in class com.aol.cyclops.matcher.builders.InMatchOfManyStep2
-
Deprecated.
Create a new Case with the supplied ActionWithReturn as the action
- thenApply(TypedFunction<T, X>) - Method in interface com.aol.cyclops.matcher.builders.Step
-
Create a new Case with the supplied ActionWithReturn as the action
- thenApply(TypedFunction<T, X>) - Method in interface com.aol.cyclops.matcher.builders.TempCollectionStepExtension
-
Deprecated.
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<V>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfBuilder
-
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<V>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InMatchOfBuilder
-
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<T>) - Method in interface com.aol.cyclops.matcher.builders.CollectionStep
-
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<List<V>>) - Method in class com.aol.cyclops.matcher.builders.InCaseOfManyStep2
-
Deprecated.
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<List<V>>) - Method in class com.aol.cyclops.matcher.builders.InMatchOfManyStep2
-
Deprecated.
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<T>) - Method in interface com.aol.cyclops.matcher.builders.Step
-
Create a new Case with the supplied ActionWithReturn as the action
- thenConsume(Action<T>) - Method in interface com.aol.cyclops.matcher.builders.TempCollectionStepExtension
-
Deprecated.
Create a new Case with the supplied ActionWithReturn as the action
- thenExtract(Extractor<V, R>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InCaseOfBuilder
-
Post-process input supplied to matching, so input to Action will be different from input to Predicate
The supplied Extractor will transform input into new value which will be supplied to the Action.
- thenExtract(Extractor<? extends V, R>) - Method in class com.aol.cyclops.matcher.builders.CaseBuilder.InMatchOfBuilder
-
- thenExtract(Extractor<T, R>) - Method in interface com.aol.cyclops.matcher.builders.ExtractionStep
-
Deprecated.
Select the elements from a Collection to be extracted and passed to an Action
- threeTrue(Predicate<V>, Predicate<V1>, Predicate<V2>) - Method in class com.aol.cyclops.matcher.builders.IterableCase
-
Deprecated.
Check that three predicates accepting potential different types hold
Will check against the first three elements of an iterable only.
- tuple(T1, T2) - Static method in class com.aol.cyclops.matcher.Two
-
- Two<T1,T2> - Class in com.aol.cyclops.matcher
-
- Two() - Constructor for class com.aol.cyclops.matcher.Two
-
- type(Class<T>) - Static method in class com.aol.cyclops.matcher.Predicates
-
Recursively decompose and match against case classes of specified type.
- TypedFunction<T,R> - Interface in com.aol.cyclops.matcher
-
Serializable function which allows Generic type information to be captured
- when() - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Create a builder for Matching against a provided Object as is (i.e.
- when() - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Create a builder for Matching against a provided Object as is (i.e.
- when() - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
Create a builder for Matching on Case classes.
- when() - Static method in class com.aol.cyclops.matcher.recursive.RecursiveMatcher
-
Create a builder for Matching on Case classes.
- whenAllMatch(<any>...) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Build a Case which is triggered when all of the supplied Hamcrest Matchers holds
- whenAllMatch(<any>...) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Build a Case which is triggered when all of the supplied Hamcrest Matchers holds
- whenAnyMatch(<any>...) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Build a Case which is triggered when any of the supplied Hamcrest Matchers holds
- whenAnyMatch(<any>...) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Build a Case which is triggered when any of the supplied Hamcrest Matchers holds
- whenFromStream() - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
Create a builder that builds Pattern Matching Cases from Streams of data.
- whenFromStream() - Static method in class com.aol.cyclops.matcher.CollectionMatcher
-
Deprecated.
Create a builder that builds Pattern Matching Cases from Streams of data.
- whenIsMatch(<any>) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Build a Case which is triggered when the supplied Hamcrest Matcher holds
- whenIsMatch(<any>) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Build a Case which is triggered when the supplied Hamcrest Matcher holds
- whenIsTrue(Predicate<V>) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Build a Case which is triggered when the supplied Predicate holds
- whenIsTrue(Predicate<V>) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Build a Case which is triggered when the supplied Predicate holds
- whenIsType(TypedFunction<T, R>) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Create a completed Case which is triggered when matching input is of the same type (T) as the input parameter to ActionWithReturn.
- whenIsType(TypedFunction<T, R>) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Create a completed Case which is triggered when matching input is of the same type (T) as the input parameter to ActionWithReturn.
- whenIsType(TypedFunction<T, R>) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
Build a Case where we will check if user input matches the Type of the input params on the ActionWithReturn instance supplied
If it does, the ActionWithReturn will be executed (applied) to get the result of the Match.
- whenIsType(Class<T>, Function<T, R>) - Method in class com.aol.cyclops.matcher.builders.RecursiveMatcherInstance
-
- whenIsType(TypedFunction<T, R>) - Static method in class com.aol.cyclops.matcher.recursive.RecursiveMatcher
-
Build a Case where we will check if user input matches the Type of the input params on the ActionWithReturn instance supplied
If it does, the ActionWithReturn will be executed (applied) to get the result of the Match.
- whenIsType(Class<T>, Function<T, R>) - Static method in class com.aol.cyclops.matcher.recursive.RecursiveMatcher
-
- whenIsValue(V) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Build a Case which is triggered when the user input matches the supplied Value (via Objects.equals)
- whenIsValue(V) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Build a Case which is triggered when the user input matches the supplied Value (via Objects.equals)
- whenIterable() - Method in class com.aol.cyclops.matcher.builders.CollectionMatchingInstance
-
Deprecated.
Create a builder for matching on the disaggregated elements of a collection.
- whenIterable() - Static method in class com.aol.cyclops.matcher.CollectionMatcher
-
Deprecated.
Create a builder for matching on the disaggregated elements of a collection.
- whenNoneMatch(<any>...) - Static method in class com.aol.cyclops.matcher.builders.Matching
-
Build a Case which is triggered when none of the supplied Hamcrest Matchers holds
- whenNoneMatch(<any>...) - Method in class com.aol.cyclops.matcher.builders.MatchingInstance
-
Build a Case which is triggered when none of the supplied Hamcrest Matchers holds
- with(V...) - Method in class com.aol.cyclops.matcher.builders.CheckTypeAndValues.AndMembersMatchBuilder
-
Provide a comparison value, JDK 8 Predicate, or Hamcrest Matcher for each Element to match on.
- withType(Class<T>) - Method in class com.aol.cyclops.matcher.builders._Simpler_Case
-