public static class DiagnosticFrequencyMap.Unlimited extends Object implements DiagnosticFrequencyMap
DiagnosticFrequencyMap.Limited, DiagnosticFrequencyMap.Unlimited
Modifier and Type | Method and Description |
---|---|
boolean |
add(org.eclipse.emf.common.util.Diagnostic diagnostic)
Add a diagnostic.
|
void |
addDiagnosticFilter(Predicate<? super org.eclipse.emf.common.util.Diagnostic> filter)
Add a predicate that matches diagnostics that should be collected.
|
void |
appendTo(Collection<? super org.eclipse.emf.common.util.Diagnostic> diagnostics)
Append the diagnostics that I have collected, in decreasing severity order,
to a collection of
diagnostics . |
void |
clear()
Remove all diagnostics and histogram counts.
|
int |
getDiscardedSeverity()
Query the greatest severity of diagnostics that had to be discarded because the
map filled up.
|
boolean |
isEmpty()
Queries whether I am empty of any diagnostics.
|
boolean |
isFull()
Queries whether I am full to capacity, unable to accept any more diagnostics.
|
Iterator<org.eclipse.emf.common.util.Diagnostic> |
iterator() |
int |
size()
Queries the number of diagnostics that I contain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAll, limitedTo, unlimited
forEach, spliterator
public void clear()
DiagnosticFrequencyMap
clear
in interface DiagnosticFrequencyMap
public int size()
DiagnosticFrequencyMap
size
in interface DiagnosticFrequencyMap
public boolean isEmpty()
DiagnosticFrequencyMap
isEmpty
in interface DiagnosticFrequencyMap
true
I have no diagnostics; false
, otherwisepublic boolean isFull()
DiagnosticFrequencyMap
isFull
in interface DiagnosticFrequencyMap
true
if I have reached my limit of diagnostics; false
, otherwisepublic int getDiscardedSeverity()
DiagnosticFrequencyMap
getDiscardedSeverity
in interface DiagnosticFrequencyMap
Diagnostic.OK
if no diagnostics were discardedpublic boolean add(org.eclipse.emf.common.util.Diagnostic diagnostic)
DiagnosticFrequencyMap
add
in interface DiagnosticFrequencyMap
diagnostic
- a diagnostic to addtrue
if it was added; false
, otherwise, for example if I am fullpublic void addDiagnosticFilter(Predicate<? super org.eclipse.emf.common.util.Diagnostic> filter)
DiagnosticFrequencyMap
filter
s (overall, it's a conjunction).addDiagnosticFilter
in interface DiagnosticFrequencyMap
filter
- a predicate matching diagnostics to acceptpublic void appendTo(Collection<? super org.eclipse.emf.common.util.Diagnostic> diagnostics)
DiagnosticFrequencyMap
diagnostics
.appendTo
in interface DiagnosticFrequencyMap
diagnostics
- a collection of diagnostics to append toCopyright © 2019. All rights reserved.