Modifier and Type | Class and Description |
---|---|
static class |
ReportingSet.Options |
Constructor and Description |
---|
ReportingSet()
Constructor.
|
ReportingSet(SortedSet<T> delegate)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAllIfNotPresent(Collection<? extends T> c) |
boolean |
addIfNotPresent(T e)
Adds the item if it is not present.
|
void |
clear() |
Comparator<? super T> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
T |
first() |
void |
forEach(Consumer<? super T> action) |
int |
hashCode() |
ReportingSet<T> |
headSet(T toElement) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
last() |
Stream<T> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super T> filter) |
boolean |
retainAll(Collection<?> c) |
ReportingSet<T> |
setDuplicateOption(ReportingSet.Options state)
If set true attempts to duplicate will throw an IllegalArgumentException.
|
ReportingSet<T> |
setLog(Log log)
Sets the log that the reporting set will log to.
|
ReportingSet<T> |
setLogLevel(Log.Level level)
Sets the log level that the reporting set will log at.
|
ReportingSet<T> |
setMsgFormat(Function<T,String> msgFmt)
Sets the function to generate the log message.
|
int |
size() |
Spliterator<T> |
spliterator() |
Stream<T> |
stream() |
ReportingSet<T> |
subSet(T fromElement,
T toElement) |
ReportingSet<T> |
tailSet(T fromElement) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public ReportingSet<T> setMsgFormat(Function<T,String> msgFmt)
msgFmt
- A function to return the string to be displayed when a collision occurs.public ReportingSet<T> setDuplicateOption(ReportingSet.Options state)
state
- the state to set.public ReportingSet<T> setLog(Log log)
log
- the Log implementation to use.public ReportingSet<T> setLogLevel(Log.Level level)
level
- the log level to use.public boolean addIfNotPresent(T e)
e
- the item to add.public boolean add(T e)
public boolean addAll(Collection<? extends T> c)
public boolean addAllIfNotPresent(Collection<? extends T> c)
public void clear()
public Comparator<? super T> comparator()
comparator
in interface SortedSet<T>
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public Stream<T> parallelStream()
parallelStream
in interface Collection<T>
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean removeIf(Predicate<? super T> filter)
removeIf
in interface Collection<T>
public boolean retainAll(Collection<?> c)
public int size()
public Spliterator<T> spliterator()
spliterator
in interface Iterable<T>
spliterator
in interface Collection<T>
spliterator
in interface Set<T>
spliterator
in interface SortedSet<T>
public Stream<T> stream()
stream
in interface Collection<T>
public ReportingSet<T> subSet(T fromElement, T toElement)
public ReportingSet<T> tailSet(T fromElement)
public Object[] toArray()
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.