com.google.common.collect.ForwardingSet Java Examples
The following examples show how to use
com.google.common.collect.ForwardingSet.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MutableTypeToInstanceMap.java From codebuff with BSD 2-Clause "Simplified" License | 6 votes |
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) { return new ForwardingSet<Map.Entry<K, V>>() { @Override protected Set<Entry<K, V>> delegate() { return entries; } @Override public Iterator<Entry<K, V>> iterator() { return UnmodifiableEntry.transformEntries(super.iterator()); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } }; }
Example #2
Source File: MutableTypeToInstanceMap.java From codebuff with BSD 2-Clause "Simplified" License | 6 votes |
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) { return new ForwardingSet<Map.Entry<K, V>>() { @Override protected Set<Entry<K, V>> delegate() { return entries; } @Override public Iterator<Entry<K, V>> iterator() { return UnmodifiableEntry.transformEntries(super.iterator()); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } }; }
Example #3
Source File: MutableTypeToInstanceMap.java From codebuff with BSD 2-Clause "Simplified" License | 6 votes |
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) { return new ForwardingSet<Map.Entry<K, V>>() { @Override protected Set<Entry<K, V>> delegate() { return entries; } @Override public Iterator<Entry<K, V>> iterator() { return UnmodifiableEntry.transformEntries(super.iterator()); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } }; }
Example #4
Source File: MutableTypeToInstanceMap.java From codebuff with BSD 2-Clause "Simplified" License | 6 votes |
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) { return new ForwardingSet<Map.Entry<K, V>>() { @Override protected Set<Entry<K, V>> delegate() { return entries; } @Override public Iterator<Entry<K, V>> iterator() { return UnmodifiableEntry.transformEntries(super.iterator()); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } }; }
Example #5
Source File: MutableTypeToInstanceMap.java From codebuff with BSD 2-Clause "Simplified" License | 6 votes |
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) { return new ForwardingSet<Map.Entry<K, V>>() { @Override protected Set<Entry<K, V>> delegate() { return entries; } @Override public Iterator<Entry<K, V>> iterator() { return UnmodifiableEntry.transformEntries(super.iterator()); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } }; }
Example #6
Source File: AsyncCatcher.java From Kettle with GNU General Public License v3.0 | 5 votes |
public static <E> Set<E> catchAsyncUsage(Set<E> set, String msg) { return new ForwardingSet<E>() { @Override protected Set<E> delegate() { AsyncCatcher.catchOp(msg); return set; } }; }