@Test public void resolveEmptySet() { LocationSpecifier inner = new MockLocationSpecifier(ImmutableSet.of()); assertThat( new ToInterfaceLinkLocationSpecifier(inner).resolve(_mockContext), equalTo(ImmutableSet.of())); }
@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);  }