@Test public void resolveNonEmptySet() { LocationSpecifier inner = new MockLocationSpecifier( ImmutableSet.of( new InterfaceLocation("foo1", "bar1"), new InterfaceLinkLocation("foo2", "bar2"))); assertThat( new ToInterfaceLinkLocationSpecifier(inner).resolve(_mockContext), equalTo( ImmutableSet.of( new InterfaceLinkLocation("foo1", "bar1"), new InterfaceLinkLocation("foo2", "bar2")))); }
@Override public Set<Location> resolve(SpecifierContext ctxt) { return _inner.resolve(ctxt).stream() .map(ToInterfaceLinkLocationSpecifier::toInterfaceLinkLocation) .collect(ImmutableSet.toImmutableSet()); }
ToInterfaceLinkLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _inner.resolve(ctxt).stream() .map(ToInterfaceLinkLocationSpecifier::toInterfaceLinkLocation) .collect(ImmutableSet.toImmutableSet()); } }
ToInterfaceLinkLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _inner.resolve(ctxt).stream() .map(ToInterfaceLinkLocationSpecifier::toInterfaceLinkLocation) .collect(ImmutableSet.toImmutableSet()); } ToInterfaceLinkLocationSpecifier(LocationSpecifier inner); }
ToInterfaceLinkLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _inner.resolve(ctxt).stream() .map(ToInterfaceLinkLocationSpecifier::toInterfaceLinkLocation) .collect(ImmutableSet.toImmutableSet()); } ToInterfaceLinkLocationSpecifier(LocationSpecifier inner); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<Location> resolve(SpecifierContext ctxt); }
ToInterfaceLinkLocationSpecifier implements LocationSpecifier { @Override public Set<Location> resolve(SpecifierContext ctxt) { return _inner.resolve(ctxt).stream() .map(ToInterfaceLinkLocationSpecifier::toInterfaceLinkLocation) .collect(ImmutableSet.toImmutableSet()); } ToInterfaceLinkLocationSpecifier(LocationSpecifier inner); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<Location> resolve(SpecifierContext ctxt);  }