@Override public RichIterable<V> valuesView() { return this.getDelegate().valuesView(); }
@Override public RichIterable<V> valuesView() { return this.getDelegate().valuesView(); }
@Override public RichIterable<RichIterable<V>> multiValuesView() { return this.getMap().valuesView().collect(UnmodifiableRichIterable::of); }
@Override public RichIterable<RichIterable<V>> multiValuesView() { return this.getMap().valuesView().collect(UnmodifiableRichIterable::of); }
@Override public RichIterable<V> valuesView() { return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity()); }
@Override public RichIterable<V> valuesView() { return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity()); }
private static void assertMapContainsValues( String mapIterableName, MapIterable<?, ?> mapIterable, Object... expectedKeyValues) { try { Verify.assertNotEmpty("Expected keys/values in assertion", expectedKeyValues); MutableList<Object> expectedValues = Lists.mutable.of(); for (int i = 1; i < expectedKeyValues.length; i += 2) { expectedValues.add(expectedKeyValues[i]); } Verify.assertContainsAll(mapIterableName + ".valuesView()", mapIterable.valuesView(), expectedValues.toArray()); } catch (AssertionError e) { Verify.throwMangledException(e); } }
@Override public RichIterable<V> valuesView() { return this.getDelegate().valuesView(); }
@Override public RichIterable<RichIterable<V>> multiValuesView() { return this.getMap().valuesView().collect(UnmodifiableRichIterable::of); }
@Override public RichIterable<V> valuesView() { return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity()); }
private static void assertMapContainsValues( String mapIterableName, MapIterable<?, ?> mapIterable, Object... expectedKeyValues) { try { Verify.assertNotEmpty("Expected keys/values in assertion", expectedKeyValues); MutableList<Object> expectedValues = Lists.mutable.of(); for (int i = 1; i < expectedKeyValues.length; i += 2) { expectedValues.add(expectedKeyValues[i]); } Verify.assertContainsAll(mapIterableName + ".valuesView()", mapIterable.valuesView(), expectedValues.toArray()); } catch (AssertionError e) { Verify.throwMangledException(e); } }