@Test public void testLookupValue() { final Map<TopLevelListKey, TopLevelList> list = prepareData().getTopLevelList(); for (TopLevelList val : TOP.getTopLevelList().values()) { assertTrue(list.containsValue(val)); } assertFalse(list.containsValue(new TopLevelListBuilder().setName("blah").build())); assertFalse(list.containsValue(new TopLevelListBuilder(TOP.getTopLevelList().values().iterator().next()) .setNestedList(List.of(new NestedListBuilder().setName("foo").build())) .build())); }
Optional<V> lookupValue(final @NonNull Object key) { final NodeIdentifierWithPredicates childId = codec.serialize((Identifier<?>) key); return mapNode.getChild(childId).map(codec::createBindingProxy); }
LazyBindingMap extends AbstractMap<K, V> implements Immutable { Optional<V> lookupValue(final @NonNull Object key) { final NodeIdentifierWithPredicates childId = codec.serialize((Identifier<?>) key); return mapNode.getChild(childId).map(codec::createBindingProxy); } }
LazyBindingMap extends AbstractMap<K, V> implements Immutable { Optional<V> lookupValue(final @NonNull Object key) { final NodeIdentifierWithPredicates childId = codec.serialize((Identifier<?>) key); return mapNode.getChild(childId).map(codec::createBindingProxy); } private  LazyBindingMap(final Unordered<K, V> codec, final MapNode mapNode); }
LazyBindingMap extends AbstractMap<K, V> implements Immutable { Optional<V> lookupValue(final @NonNull Object key) { final NodeIdentifierWithPredicates childId = codec.serialize((Identifier<?>) key); return mapNode.getChild(childId).map(codec::createBindingProxy); } private  LazyBindingMap(final Unordered<K, V> codec, final MapNode mapNode); @Override int size(); @Override V remove(final Object key); @Override @SuppressWarnings("checkstyle:parameterName") void putAll(final Map<? extends K, ? extends V> m); @Override void clear(); @Override boolean containsKey(final Object key); @Override boolean containsValue(final Object value); @Override V get(final Object key); @Override Set<K> keySet(); @Override Collection<V> values(); @Override Set<Entry<K, V>> entrySet(); }
LazyBindingMap extends AbstractMap<K, V> implements Immutable { Optional<V> lookupValue(final @NonNull Object key) { final NodeIdentifierWithPredicates childId = codec.serialize((Identifier<?>) key); return mapNode.getChild(childId).map(codec::createBindingProxy); } private  LazyBindingMap(final Unordered<K, V> codec, final MapNode mapNode); @Override int size(); @Override V remove(final Object key); @Override @SuppressWarnings("checkstyle:parameterName") void putAll(final Map<? extends K, ? extends V> m); @Override void clear(); @Override boolean containsKey(final Object key); @Override boolean containsValue(final Object value); @Override V get(final Object key); @Override Set<K> keySet(); @Override Collection<V> values(); @Override Set<Entry<K, V>> entrySet();  }