public class MatchTrace extends Object implements Collection<Match>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
concurrent |
protected Collection<Match> |
matches
All matches tried during the execution of an ECL module
|
protected String |
toStringCached |
| Constructor and Description |
|---|
MatchTrace() |
MatchTrace(boolean concurrent) |
MatchTrace(MatchTrace copy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Match match) |
Match |
add(Object left,
Object right,
boolean matching,
MatchRule rule) |
boolean |
addAll(Collection<? extends Match> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
Match |
getMatch(Object object)
Returns the first match for the object
|
Match |
getMatch(Object left,
MatchRule rule) |
Match |
getMatch(Object left,
Object right) |
Collection<Match> |
getMatches()
Returns all matches, both successful and
pairs that have been compared but do not match
|
Collection<Match> |
getMatches(Object object)
Returns all the matches for a given object
|
MatchTrace |
getReduced()
Returns only successful matches
|
boolean |
hasBeenMatched(Object object) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Match> |
iterator() |
Stream<Match> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Stream<Match> |
stream() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
String |
toString(IEolContext context) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitremoveIf, spliteratorprotected Collection<Match> matches
protected boolean concurrent
protected String toStringCached
public MatchTrace()
public MatchTrace(boolean concurrent)
public MatchTrace(MatchTrace copy)
public MatchTrace getReduced()
public Collection<Match> getMatches(Object object)
object - public Match getMatch(Object object)
object - public boolean hasBeenMatched(Object object)
public String toString(IEolContext context)
public Collection<Match> getMatches()
public Stream<Match> stream()
stream in interface Collection<Match>public int hashCode()
hashCode in interface Collection<Match>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface Collection<Match>equals in class Objectpublic boolean add(Match match)
add in interface Collection<Match>public boolean remove(Object o)
remove in interface Collection<Match>public int size()
size in interface Collection<Match>public boolean isEmpty()
isEmpty in interface Collection<Match>public boolean contains(Object o)
contains in interface Collection<Match>public Object[] toArray()
toArray in interface Collection<Match>public <T> T[] toArray(T[] a)
toArray in interface Collection<Match>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Match>public boolean addAll(Collection<? extends Match> c)
addAll in interface Collection<Match>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Match>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Match>public void clear()
clear in interface Collection<Match>public Stream<Match> parallelStream()
parallelStream in interface Collection<Match>Copyright © 2020. All rights reserved.