Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class UnionMethodSet<E> extends AbstractSet<E>
nullThis class is unmodifiable.| Modifier and Type | Class and Description |
|---|---|
static interface |
UnionMethodSet.Method<E> |
static class |
UnionMethodSet.ReflectionMethod<E> |
static class |
UnionMethodSet.SetMethod<E>
A set of values will be obtained from the call to the method.
|
static class |
UnionMethodSet.SingletonMethod<E>
A single value will be obtained from the call to the method.
|
| Constructor and Description |
|---|
UnionMethodSet(Object target,
Class<E> classE,
Map<Class<? extends E>,? extends List<? extends UnionMethodSet.Method<? extends E>>> methodsByClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object element) |
boolean |
isEmpty()
Checks if this set is empty.
|
Iterator<E> |
iterator() |
int |
size()
This is an expensive operation, since every single method is called, and
when there are multiple methods for one class, the sets must be merged to
avoid redundant values.
|
equals, hashCode, removeAlladd, addAll, clear, containsAll, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, containsAll, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>isEmpty in class AbstractCollection<E>public boolean contains(Object element)
contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.