@Test public void testPut() throws Exception { map.put( new Value( "hello" ), "test" ); assertTrue( changeSet.getAdded().get( new Value( "hello" ) ).contains( "test" ) ); assertEquals( 1, timesCalled ); }
@Override public boolean put(final V value, final T t) { addToCounter(); final boolean put = map.put(value, t); addToChangeSet(value, t); fire(); return put; }
ChangeHandledMultiMap implements MultiMap<V, T, ListType> { @Override public boolean put(final V value, final T t) { addToCounter(); final boolean put = map.put(value, t); addToChangeSet(value, t); fire(); return put; } }
ChangeHandledMultiMap implements MultiMap<V, T, ListType> { @Override public boolean put(final V value, final T t) { addToCounter(); final boolean put = map.put(value, t); addToChangeSet(value, t); fire(); return put; } ChangeHandledMultiMap(final MultiMap<V, T, ListType> map); }
ChangeHandledMultiMap implements MultiMap<V, T, ListType> { @Override public boolean put(final V value, final T t) { addToCounter(); final boolean put = map.put(value, t); addToChangeSet(value, t); fire(); return put; } ChangeHandledMultiMap(final MultiMap<V, T, ListType> map); @Override boolean put(final V value,
                       final T t); @Override int size(); @Override Set<V> keySet(); @Override ListType get(final V key); @Override boolean addAllValues(final V value,
                                final Collection<T> tCollection); @Override Collection<T> remove(final V value); @Override boolean isEmpty(); void addChangeListener(final MultiMapChangeHandler<V, T> changeHandler); @Override Collection<T> allValues(); @Override void move(final Set<V> oldKeys,
                     final Set<V> newKeys,
                     final T t); @Override boolean containsKey(final V key); @Override V firstKey(); @Override V lastKey(); @Override MultiMap<V, T, ListType> subMap(final V fromKey,
                                           final boolean fromInclusive,
                                           final V toKey,
                                           final boolean toInclusive); @Override void removeValue(final V value,
                            final T t); @Override void clear(); @Override void putAllValues(final V value,
                             final Collection<T> ts); }
ChangeHandledMultiMap implements MultiMap<V, T, ListType> { @Override public boolean put(final V value, final T t) { addToCounter(); final boolean put = map.put(value, t); addToChangeSet(value, t); fire(); return put; } ChangeHandledMultiMap(final MultiMap<V, T, ListType> map); @Override boolean put(final V value,
                       final T t); @Override int size(); @Override Set<V> keySet(); @Override ListType get(final V key); @Override boolean addAllValues(final V value,
                                final Collection<T> tCollection); @Override Collection<T> remove(final V value); @Override boolean isEmpty(); void addChangeListener(final MultiMapChangeHandler<V, T> changeHandler); @Override Collection<T> allValues(); @Override void move(final Set<V> oldKeys,
                     final Set<V> newKeys,
                     final T t); @Override boolean containsKey(final V key); @Override V firstKey(); @Override V lastKey(); @Override MultiMap<V, T, ListType> subMap(final V fromKey,
                                           final boolean fromInclusive,
                                           final V toKey,
                                           final boolean toInclusive); @Override void removeValue(final V value,
                            final T t); @Override void clear(); @Override void putAllValues(final V value,
                             final Collection<T> ts);  }