Skip to content

Commit

Permalink
Implement unmodifiable BiMaps. Fixes #24.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Nanivadekar <nikhil.nanivadekar@gs.com>
  • Loading branch information
nikhilnanivadekar committed Jun 10, 2016
1 parent 271876f commit e4b1e27
Show file tree
Hide file tree
Showing 6 changed files with 1,585 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTE_DRAFT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ New Functionality
* Implemented Multimap.keySet() to return an unmodifiable SetIterable of keys.
* Implemented MutableMultimap.putAllPairs(Iterable<Pair<K, V>> keyValuePairs).
* Implemented LazyIterable.takeWhile(Predicate<? super T> predicate) and LazyIterable.dropWhile(Predicate<? super T> predicate).
* Implemented unmodifiable BiMaps.
* Pull up into() from LazyIterable to RichIterable.
* Made StackIterable implement OrderedIterable.
* Implemented summarizeInt/Float/Long/Double({Int/Float/Long/Double}Function) on RichIterable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public MutableBiMap<K, V> asSynchronized()
@Override
public MutableBiMap<K, V> asUnmodifiable()
{
throw new UnsupportedOperationException(this.getClass().getSimpleName() + ".asUnmodifiable() not implemented yet");
return UnmodifiableBiMap.of(this);
}

@Override
Expand Down
Loading

0 comments on commit e4b1e27

Please sign in to comment.